File tree Expand file tree Collapse file tree 13 files changed +32
-25
lines changed Expand file tree Collapse file tree 13 files changed +32
-25
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class MenuExploration extends StatefulWidget {
18
18
this .height,
19
19
this .onChanged,
20
20
this .selectedValue,
21
- }) : assert (options != null && options .isNotEmpty),
21
+ }) : assert (options.isNotEmpty),
22
22
super (key: key);
23
23
24
24
@override
Original file line number Diff line number Diff line change @@ -184,8 +184,10 @@ class _MoviesConceptPageState extends State<MoviesConceptPage> {
184
184
left: size.width / 4 ,
185
185
bottom: 20 ,
186
186
width: size.width / 2 ,
187
- child: RaisedButton (
188
- color: Colors .black,
187
+ child: ElevatedButton (
188
+ style: ElevatedButton .styleFrom (
189
+ primary: Colors .black,
190
+ ),
189
191
child: Text (
190
192
'BUY TICKET' ,
191
193
style: TextStyle (color: Colors .white),
Original file line number Diff line number Diff line change @@ -216,10 +216,12 @@ class _PhotoConceptPageState extends State<PhotoConceptPage> {
216
216
duration: duration),
217
217
Padding (
218
218
padding: const EdgeInsets .all (12.0 ),
219
- child: RaisedButton (
220
- color: Colors .redAccent,
221
- shape: RoundedRectangleBorder (
222
- borderRadius: BorderRadius .circular (20.0 ),
219
+ child: ElevatedButton (
220
+ style: ElevatedButton .styleFrom (
221
+ primary: Colors .redAccent,
222
+ shape: RoundedRectangleBorder (
223
+ borderRadius: BorderRadius .circular (20.0 ),
224
+ ),
223
225
),
224
226
onPressed: () {},
225
227
child: Padding (
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ class _SportsStorePageState extends State<SportsStorePage> {
305
305
child: Row (
306
306
children: [
307
307
Expanded (
308
- child: OutlineButton (
308
+ child: OutlinedButton (
309
309
onPressed: null ,
310
310
child: Text (
311
311
'3' ,
@@ -317,7 +317,7 @@ class _SportsStorePageState extends State<SportsStorePage> {
317
317
width: 10 ,
318
318
),
319
319
Expanded (
320
- child: OutlineButton (
320
+ child: OutlinedButton (
321
321
onPressed: null ,
322
322
child: Text (
323
323
'4' ,
@@ -329,7 +329,7 @@ class _SportsStorePageState extends State<SportsStorePage> {
329
329
width: 10 ,
330
330
),
331
331
Expanded (
332
- child: OutlineButton (
332
+ child: OutlinedButton (
333
333
onPressed: null ,
334
334
child: Text (
335
335
'5' ,
Original file line number Diff line number Diff line change @@ -147,13 +147,16 @@ class AlbumWidget extends StatelessWidget {
147
147
color: Colors .white,
148
148
),
149
149
),
150
- RaisedButton (
150
+ ElevatedButton (
151
+ style: ElevatedButton .styleFrom (
152
+ primary: Colors .pinkAccent,
151
153
shape: RoundedRectangleBorder (
152
154
borderRadius: BorderRadius .circular (25 ),
153
155
),
154
- color: Colors .pinkAccent,
155
- child: Text ('ADD TO PLAYLIST' ),
156
- onPressed: () => null )
156
+ ),
157
+ child: Text ('ADD TO PLAYLIST' ),
158
+ onPressed: () => null ,
159
+ )
157
160
],
158
161
),
159
162
),
Original file line number Diff line number Diff line change @@ -30,21 +30,21 @@ class Child1PageState extends State<Child1Page> {
30
30
widget.title ?? value,
31
31
style: Theme .of (context).primaryTextTheme.headline5,
32
32
),
33
- RaisedButton (
33
+ ElevatedButton (
34
34
//Update Parent from Child 1
35
35
child: Text ("Action 2" ),
36
36
onPressed: () {
37
37
widget.child2Action2 !("Update from Child 1" );
38
38
},
39
39
),
40
- RaisedButton (
40
+ ElevatedButton (
41
41
//Update Child 2 from Child 1
42
42
child: Text ("Action 3" ),
43
43
onPressed: () {
44
44
widget.child2Action3 !("Update from Child 1" );
45
45
},
46
46
),
47
- RaisedButton (
47
+ ElevatedButton (
48
48
//Change Tab from Child 1 to Child 2
49
49
child: Text ("Action 4" ),
50
50
onPressed: () {
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ class ParentPageState extends State<ParentPage>
74
74
textAlign: TextAlign .center,
75
75
),
76
76
),
77
- RaisedButton (
77
+ ElevatedButton (
78
78
//Update Child 1 from Parent
79
79
child: Text ("Action 1" ),
80
80
onPressed: () {
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class _MainFetchDataState extends State<MainFetchData> {
39
39
),
40
40
bottomNavigationBar: Padding (
41
41
padding: const EdgeInsets .all (8.0 ),
42
- child: RaisedButton (
42
+ child: ElevatedButton (
43
43
child: Text ("Fetch Data" ),
44
44
onPressed: _fetchData,
45
45
),
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class _MainHeroAnimationsPageState extends State<MainHeroAnimationsPage> {
121
121
)),
122
122
),
123
123
actions: < Widget > [
124
- OutlineButton (
124
+ OutlinedButton (
125
125
onPressed: () => Navigator .of (context).pop (),
126
126
child: Icon (Icons .close),
127
127
),
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Page1 extends StatelessWidget {
20
20
),
21
21
),
22
22
),
23
- OutlineButton (
23
+ OutlinedButton (
24
24
onPressed: () => Navigator .of (context).pop (),
25
25
child: Icon (Icons .close),
26
26
)
You can’t perform that action at this time.
0 commit comments