Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Writing better Flutter Code with Flutter Lint / Part1
Search
Kenichi Kambara
April 12, 2023
Technology
0
95
Writing better Flutter Code with Flutter Lint / Part1
#flutter
#flutterjp
#flutterdev
#yumemi_grow
Kenichi Kambara
April 12, 2023
Tweet
Share
More Decks by Kenichi Kambara
See All by Kenichi Kambara
[potatotips #86]UX Improvements on Flutter Apps Part 1
korodroid
0
28
Supporting RTL on Flutter Apps 7 Development Tips
korodroid
0
30
[DevFestKC]Go Global with Flutter Apps 101
korodroid
0
33
[ABC2023A]Go Global with Flutter Apps
korodroid
0
24
[potatotips #85]Deep Dive into RTL on Flutter Apps (Short ver.)
korodroid
0
39
Supporting RTL on Flutter Apps
korodroid
0
31
[potatotips #84]Supporting Large Screen on Flutter
korodroid
0
82
7 Tips for Wear OS Apps Development
korodroid
0
39
英語学習の取り組み方(例) / Part2
korodroid
1
360
Other Decks in Technology
See All in Technology
Kubeflow Pipelines v2 で変わる機械学習パイプライン開発
asei
4
340
戦略的DDDを実践するための跳躍力 / OOC 2024
pictiny
6
4.2k
.NETの非同期戦略とUnityとの相互運用
neuecc
2
2.4k
MongoDB Atlas Vectorsearchではじめる生成AIアプリ開発
chie8842
3
510
AWS アーキテクチャクイズ
yuu26
2
700
エンジニア候補者向け資料2024.03.28.pdf
macloud
0
2.9k
エンジニアブランディングチームの KPI / KPI's of engineer branding team
chaspy
1
140
長文から長文を生成するLLMツールをオープンソースで作ってみた。
tomohisa
2
150
統計的学習理論読み Chapter 1
kmatsui
4
960
OpenTelemetry実践 はじめの一歩
taxin
0
330
中学生でもわかる深層学習
e869120
10
2.7k
データマネジメントを支える武器としてのメタデータ管理
10xinc
2
920
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
350
18k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
11
1.4k
Docker and Python
trallard
33
2.6k
Building Your Own Lightsaber
phodgson
97
5.6k
YesSQL, Process and Tooling at Scale
rocio
160
13k
Infographics Made Easy
chrislema
237
18k
Bash Introduction
62gerente
604
210k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
14
1.3k
Designing the Hi-DPI Web
ddemaree
275
33k
The Pragmatic Product Professional
lauravandoore
24
5.7k
Clear Off the Table
cherdarchuk
82
310k
Adopting Sorbet at Scale
ufuk
66
8.5k
Transcript
2023.04.12 ਆݪ ݈Ұ (@korodroid) Writing better Flutter Code with
Flutter Lint / Part1 YUMEMI.grow Mobile #2
ࣗݾհ •ۀɿϞόΠϧΞϓϦ։ൃ/ٕज़ࢧԉ/จԽৢ׆ಈ •ߨԋɿΠϕϯτొஃ(ւ֎14ճɺࠃ100ճ+) •ࣥචɿ7 •झຯɿϥϯχϯά/ӳձ/ΞϓϦ։ൃ ਆݪ ݈Ұ (NTTςΫϊΫϩε/ΤόϯδΣϦετ)
About my Flutter product (Private works) Sekaiphone Pro(Flutter/Kotlin/Swift) MyToDo(Flutter)
Lintπʔϧ(੩తղੳ)Λ׆༻͢ΔϝϦοτྫ 1. જࡏతͳόάͷݕग़ 2. ϨϏϡʔ࡞ۀͷෛՙܰݮ 3. ΞϓϦͷύϑΥʔϚϯεվળ
Flutter͚Lintπʔϧ( fl utter_lints) https://pub.dev/packages/ fl utter_lints
Walking through “ fl utter_lints” ↑ඞཁʹԠͯ͡ɺ࠷৽൛ʹߋ৽
Walking through “analysis_options.yaml”
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
Walking through “recommended.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 Walking through “ fl utter.yaml” again
Walking through “Linter for Dart” https://dart-lang.github.io/linter/lints/ productionίʔυʹ͓͚Δprint੍
Example: “avoid_print”
More examples ྫ.ΠϯελϯεੜͷͨΊͷnewར༻੍
More examples ྫ.Collection͕ಛఆཁૉΛؚΉ͔൱͔ͷఆ
·ͱΊ •FlutterΞϓϦ։ൃͰੵۃతʹLint׆༻ʂ •ެࣜϦϑΝϨϯεͷϓϥΫςΟεࢀߟʹʂ •Linter for DartɺݴޠֶशͷಡΈͱ͓ͯ͢͢͠Ίʂ
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