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
FlutterMeetUp.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
yuki-marume
November 07, 2019
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
FlutterMeetUp.pdf
yuki-marume
November 07, 2019
More Decks by yuki-marume
See All by yuki-marume
あるあるLT.pdf
maru01
0
210
クリぼっちLT.pdf
maru01
0
260
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
28
2.8k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
2
3.8k
Practical Orchestrator
shlominoach
191
12k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
Balancing Empowerment & Direction
lara
6
1.3k
Designing for Performance
lara
611
70k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
230
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Embracing the Ebb and Flow
colly
88
5.2k
Agile that works and the tools we love
rasmusluckow
331
22k
Transcript
1 FlutterͰݸਓతʹͭ·ͬͨͱ͜Ζͱ ࣗͳΓͷղܾࡦ Flutter Meetup Tokyo #12 2019.11.7
ࣗݾհ • ໊લɿؙ༗ً • Flutterྺɿ3ϲ݄ʢ͚ࣾΞϓϦʣ • ৬छɿAndroidʢϚϯΨΞϓϦʣ • झຯɿےτϨ •
Twitterɿ@marudroid 2
࣍ 3 ᶃը໘ͷೖΕସ͑ ᶄGridViewͷΞΠςϜʹը૾ʢαʔόʔ্ʣؚ͕·Ε͍ͯ Δͱ͖ʹɺը૾ΛΞΠςϜͷαΠζ͍ͬͺ͍·Ͱ͍͛ͨ ᶅ͋Δը໘ͷ্ʹഎܠ͕ಁ໌ͷը໘Λද͍ࣔͨ͠
࣍ 4 ᶃը໘ͷೖΕସ͑ ᶄGridViewͷΞΠςϜʹը૾ʢαʔόʔ্ʣؚ͕·Ε͍ͯ Δͱ͖ʹɺը૾ΛΞΠςϜͷαΠζ͍ͬͺ͍·Ͱ͍͛ͨ ᶅ͋Δը໘ͷ্ʹഎܠ͕ಁ໌ͷը໘Λද͍ࣔͨ͠
5 A B
6
Navigator.pushReplacement( context, MaterialPageRoute( builder: (context) => SamplePage())); 7
8 ࢥͬͨ௨Γʹಈ͔ͳ͍ɾɾ
9 ϧʔτͷը໘Ͱ͔͠ಈ͔ͳ͍
10 Navigator.push( context, MaterialPageRoute( builder: (context) => SamplePage()));
11 Navigator.push( context, MaterialPageRoute( builder: (context) => SamplePage())); Navigator.of(context).popUntil((route) =>
route.isFirst);
12 https://stackoverflow.com/questions/51484032/ flutter-navigation-push-replacement-is-not- working-when-not-placed-in-the-first
࣍ 13 ᶃը໘ͷೖΕସ͑ ᶄGridViewͷΞΠςϜʹը૾ʢαʔόʔ্ʣؚ͕·Ε͍ͯ Δͱ͖ʹɺը૾͕খ͘͞ͳΔ ᶅ͋Δը໘ͷ্ʹഎܠ͕ಁ໌ͷը໘Λද͍ࣔͨ͠
(PPE #BE 14 ը૾͕খ͘͞ͳͬ ͍ͯΔ
15 ը૾Λϩʔυ͢ΔલͷϨϯμϦϯά͞Εͨ࣌ͷαΠζͰݻఆ͞Ε ͍ͯͯɺը૾͕ಡΈࠐ·ΕΔͱͦͷαΠζͷൣғͰදࣔ͠Α͏ͱ ͢Δ
16 ͋Β͔͡ΊαΠζΛܾΊͯ͠·͏
17 GridView.count( padding: EdgeInsets.only(left: 36, top: 18), physics: ScrollPhysics(), crossAxisCount:
2, shrinkWrap: true, childAspectRatio: 0.7, ΞΠςϜͷΞεϖΫτൺΛࢦఆ͓ͯ͘͠
࣍ 18 ᶃը໘ͷೖΕସ͑ ᶄGridViewͷΞΠςϜʹը૾ʢαʔόʔ্ʣؚ͕·Ε͍ͯ Δͱ͖ʹɺը૾ΛΞΠςϜͷαΠζ͍ͬͺ͍·Ͱ͍͛ͨ ᶅ͋Δը໘ͷ্ʹഎܠ͕ಁ໌ͷը໘Λද͍ࣔͨ͠
19
20 showGeneralDialog( context: context, barrierColor: Colors.black12.withOpacity(0.6),
21 എܠਅͬനʹͳΔ
22 Androidͱಉ͡Α͏ʹςʔϚ͍ͬͯ͡ΈΔ͔
23 class MyApp extends StatelessWidget { // This widget is
the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: '& COFFEE', theme: ThemeData( primarySwatch: Colors.blue, canvasColor: Colors.transparent ) ThemeDataͷcanvasColorʹಁ໌৭Λࢦఆ͓ͯ͘͠
24
25 showGeneralDialog( context: context, barrierColor: Colors.black12.withOpacity(0.6), // background color barrierDismissible:
false, // should dialog be dismissed when tapped outside barrierLabel: "Dialog", // label for barrier transitionDuration: Duration(milliseconds: 400), pageBuilder: (_, __, ___) { return Scaffold( backgroundColor: Colors.black12.withOpacity(0.6), body: SizedBox.expand( දࣔWidgetͷഎܠ৭Λม͑Δ͚ͩͰΑ͔ͬͨ
26 ͬͱ͍͍ํ๏͋ΔΑʂͱ͔ؒҧͬͯΔΑʂͱ͔͋Ε ࠙ձͰڭ͍͚͑ͨͩΔͱ͍Ͱ͢
27 ͓ΘΓ