Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Writing better Flutter Code
 with Flutter Lint ...

Writing better Flutter Code
 with Flutter Lint / Part1

#flutter
#flutterjp
#flutterdev
#yumemi_grow

Kenichi Kambara

April 12, 2023
Tweet

More Decks by Kenichi Kambara

Other Decks in Technology

Transcript

  1.  Walking through “ fl utter.yaml” # Recommended lints for

    Flutter apps, packages, and plugins. include: package:lints/recommended.yaml linter: rules: - avoid_print - avoid_unnecessary_containers - avoid_web_libraries_in_ fl utter - no_logic_in_create_state - prefer_const_constructors - prefer_const_constructors_in_immutables - prefer_const_declarations - prefer_const_literals_to_create_immutables - sized_box_for_whitespace - sort_child_properties_last - use_build_context_synchronously - use_full_hex_values_for_ fl utter_colors - use_key_in_widget_constructors
  2. # Recommended lints for Flutter apps, packages, and plugins. include:

    package:lints/recommended.yaml linter: rules: - avoid_print - avoid_unnecessary_containers - avoid_web_libraries_in_ fl utter - no_logic_in_create_state - prefer_const_constructors - prefer_const_constructors_in_immutables - prefer_const_declarations - prefer_const_literals_to_create_immutables - sized_box_for_whitespace - sort_child_properties_last - use_build_context_synchronously - use_full_hex_values_for_ fl utter_colors - use_key_in_widget_constructors  Walking through “ fl utter.yaml” again
  3.  Please let me know if you have any requests

    
 such as technical speeches, technical writings and so on. Facebook:http://fb.com/kanbara.kenichi Twitter:@korodroid LinkedIn:http://www.linkedin.com/in/korodroid Thank you so much