sur950 / any_link_preview

A flutter Plugin/Package to show the preview of any web link that starts with HTTP/HTTPS. Mostly useful for application that had chat.
MIT License
70 stars 70 forks source link

refactor: Fix multiple analysis issues #71

Open alverone opened 3 months ago

alverone commented 3 months ago

Description

This pull request aims to fix some of the analysis and other issues without changing the functionality and/or introducing breaking changes.

Change log:

Details

Enabled/added rules:


    sized_box_for_whitespace
    prefer_const_constructors
    comment_references
    avoid_multiple_declarations_per_line
    noop_primitive_operations
    cascade_invocations
    avoid_redundant_argument_values
    lines_longer_than_80_chars
    prefer_int_literals
    prefer_const_constructors_in_immutables
    avoid_void_async
    require_trailing_commas

Screenshots of the example app (before & after):

Screenshots: #### After: *** #### Before: