Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Writing better Flutter Code with Flutter Lint ...
Search
Kenichi Kambara
April 12, 2023
Technology
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Writing better Flutter Code with Flutter Lint / Part1
#flutter
#flutterjp
#flutterdev
#yumemi_grow
Kenichi Kambara
April 12, 2023
Transcript
16 slides
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
More Decks by Kenichi Kambara
See All by Kenichi Kambara
[FlutterKaigi] Building Better Flutter UX: Insights from 50+ Countries
korodroid
0
69
[potatotips #96] Give Your AI Agent the Flutter Playbook
korodroid
0
280
n個のアプリ開発系 Skills を 作り育てて気づいたこと
korodroid
0
1.6k
[爆速開発LT #2] Codex-Powered Mobile Apps Development - Deep Dive Edition -
korodroid
0
81
[DevFest Singapore] Getting Started with Mobile Development Using Generative AI
korodroid
0
96
[FlutterAlliance]Designing Borderless UX in Flutter: Insights from 50 Countries
korodroid
0
70
[Codex Meetup Japan #1] Codex-Powered Mobile Apps Development
korodroid
2
1.8k
[AgentConHelsinki2025]From Assistant to Agent: How Developer Agents Reshape Mobile Workflows
korodroid
0
64
[FlutterTokyo#10]In-App Language Switching in Flutter
korodroid
0
70
Other Decks in Technology
See All in Technology
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
130
Welcome JXL!
dynamis
0
830
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
230
コーディングできない僕にBobが舞い降りた
shumpei3
0
220
さようならSSH鍵、こんにちはゼロトラスト ― AIフレンドリーで快適な自宅鯖SSH
atalie2m
14
7.6k
Kiro のリモートワークスペース: IDE は手元のままで、ワークスペースをクラウド、コンテナ、自前のマシンに置く
inariku
PRO
2
260
Ignite 2026 Security
babaneko
0
100
AIフレンドリーなGenerative UIをJSXで
uhyo
2
710
専門家に使ってもらうAIプロダクトをつくる - 病院の医事課向けDPCコーディング支援システムの設計と評価
hagino3000
4
1.1k
競馬予想をAIでやってみた話
yoshimura_datam
0
140
想定外の利用がプロダクトの価値を広げる
lycorptech_jp
PRO
0
110
メディアアートを〈拡張〉する——器官学と個体化論を手がかりに
_kotobuki_
0
370
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.7k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
490
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
1k
Navigating Team Friction
lara
192
16k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Designing Powerful Visuals for Engaging Learning
tmiket
1
670
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
570
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
340
Prompt Engineering for Job Search
mfonobong
0
610
For a Future-Friendly Web
brad_frost
184
11k
Google's AI Overviews - The New Search
badams
0
1.7k