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
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
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Ruling the World: When Life Gets Gamed
codingconduct
0
400
Building an army of robots
kneath
307
47k
Building AI with AI
inesmontani
PRO
1
1.3k
The untapped power of vector embeddings
frankvandijk
2
1.9k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
The Cost Of JavaScript in 2023
addyosmani
55
10k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
A designer walks into a library…
pauljervisheath
211
25k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
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 ͓ΘΓ