File tree 26 files changed +30
-14
lines changed
CupertinoSegmentedControl
CupertinoSliverNavigationBar
26 files changed +30
-14
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
3
3
class WidgetNotFound extends StatelessWidget {
4
-
4
+ @override
5
5
Widget build (BuildContext context) {
6
6
return Scaffold (
7
7
appBar: AppBar (
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class SliderDemo extends StatefulWidget {
14
14
15
15
class _Demo extends State <SliderDemo > {
16
16
double value = 0.0 ;
17
-
17
+ @override
18
18
Widget build (BuildContext context) {
19
19
return Slider (
20
20
value: value,
@@ -42,7 +42,7 @@ class SliderThemeDemo extends StatefulWidget {
42
42
43
43
class _SliderThemeDemo extends State <SliderThemeDemo > {
44
44
double value = 0.0 ;
45
-
45
+ @override
46
46
Widget build (BuildContext context) {
47
47
return Container (
48
48
child: SliderTheme (
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class Demo extends StatefulWidget {
75
75
}
76
76
77
77
class _Demo extends State <Demo > {
78
-
78
+ @override
79
79
Widget build (BuildContext context) {
80
80
return WidgetDemo (
81
81
title: 'Slider' ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class SliderThemeDemo extends StatefulWidget {
14
14
15
15
class _SliderThemeDemo extends State <SliderThemeDemo > {
16
16
double value = 0.0 ;
17
+ @override
17
18
Widget build (BuildContext context) {
18
19
return Container (
19
20
child: SliderTheme (
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class Demo extends StatefulWidget {
59
59
}
60
60
61
61
class _Demo extends State <Demo > {
62
-
62
+ @override
63
63
Widget build (BuildContext context) {
64
64
return WidgetDemo (
65
65
title: 'SliderTheme' ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class SliderThemeDemo extends StatefulWidget {
14
14
15
15
class _SliderThemeDemo extends State <SliderThemeDemo > {
16
16
double value = 0.0 ;
17
+ @override
17
18
Widget build (BuildContext context) {
18
19
return Container (
19
20
child: SliderTheme (
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class Demo extends StatefulWidget {
33
33
34
34
class _Demo extends State <Demo > {
35
35
Color c = CupertinoColors .activeBlue;
36
+ @override
36
37
Widget build (BuildContext context) {
37
38
return WidgetDemo (
38
39
title: 'SliderThemeData' ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class SwitchDemo extends StatefulWidget {
13
13
14
14
class _Demo extends State <SwitchDemo > {
15
15
bool check = false ;
16
+ @override
16
17
Widget build (BuildContext context) {
17
18
return Switch (
18
19
value: this .check,
@@ -31,6 +32,7 @@ class SwitchHighDemo extends StatefulWidget {
31
32
32
33
class _SwitchHighDemo extends State <SwitchHighDemo > {
33
34
bool check = false ;
35
+ @override
34
36
Widget build (BuildContext context) {
35
37
return Switch .adaptive (
36
38
value: this .check,
@@ -51,6 +53,7 @@ class SwitchTypesDemo extends StatefulWidget {
51
53
52
54
class _SwitchTypesDemo extends State <SwitchTypesDemo > {
53
55
bool check = false ;
56
+ @override
54
57
Widget build (BuildContext context) {
55
58
return Switch (
56
59
value: this .check,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class Demo extends StatefulWidget {
52
52
}
53
53
54
54
class _Demo extends State <Demo > {
55
-
55
+ @override
56
56
Widget build (BuildContext context) {
57
57
return WidgetDemo (
58
58
title: 'Switch' ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class SwitchListTileDemo extends StatefulWidget {
13
13
14
14
class _Demo extends State <SwitchListTileDemo > {
15
15
bool _lights = false ;
16
+ @override
16
17
Widget build (BuildContext context) {
17
18
return SwitchListTile (
18
19
title: const Text ('Lights' ),
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class Demo extends StatefulWidget {
28
28
}
29
29
30
30
class _Demo extends State <Demo > {
31
-
31
+ @override
32
32
Widget build (BuildContext context) {
33
33
return WidgetDemo (
34
34
title: 'SwitchListTile' ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class RichTextDemo extends StatefulWidget {
12
12
}
13
13
14
14
class _Demo extends State <RichTextDemo > {
15
-
15
+ @override
16
16
Widget build (BuildContext context) {
17
17
return Container (
18
18
color: Color (0xff000000 ),
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class Demo extends StatefulWidget {
25
25
}
26
26
27
27
class _Demo extends State <Demo > {
28
-
28
+ @override
29
29
Widget build (BuildContext context) {
30
30
return WidgetDemo (
31
31
title: 'Rich Text' ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class TextDemo extends StatefulWidget {
15
15
class _Demo extends State <TextDemo > {
16
16
int index = 0 ;
17
17
Duration timer = new Duration (minutes: 50 );
18
-
18
+ @override
19
19
Widget build (BuildContext context) {
20
20
return Text ("i'm a text" );
21
21
}
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ class _Demo extends State<Demo> {
35
35
onButtonTap () {
36
36
37
37
}
38
+ @override
38
39
Widget build (BuildContext context) {
39
40
return WidgetDemo (
40
41
title: "Text" ,
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class _CupertinoIconsFullDefault extends State {
70
70
}
71
71
}
72
72
}
73
-
73
+ @override
74
74
Widget build (BuildContext context) {
75
75
return
76
76
Align (
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ class _CupertinoNavigationBarFullDefault extends State {
82
82
);
83
83
}
84
84
85
+ @override
85
86
Widget build (BuildContext context) {
86
87
return SizedBox (
87
88
height: MediaQuery .of (context).size.height/ 1.5 ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class CupertinoScrollbarDemo extends StatefulWidget {
13
13
}
14
14
15
15
class _Demo extends State <CupertinoScrollbarDemo > {
16
-
16
+ @override
17
17
Widget build (BuildContext context) {
18
18
return Column (
19
19
children: < Widget > [
@@ -47,7 +47,7 @@ class NoCupertinoScrollbarDemo extends StatefulWidget {
47
47
}
48
48
49
49
class _NoCupertinoScrollbarDemo extends State <NoCupertinoScrollbarDemo > {
50
-
50
+ @override
51
51
Widget build (BuildContext context) {
52
52
return Column (
53
53
children: < Widget > [
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class CupertinoSegmentedControlDemo extends StatefulWidget {
8
8
9
9
class _Demo extends State <CupertinoSegmentedControlDemo > {
10
10
String value = 'a' ;
11
+ @override
11
12
Widget build (BuildContext context) {
12
13
return CupertinoSegmentedControl (
13
14
onValueChanged: (v) {
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class CupertinoSliderDemo extends StatefulWidget {
14
14
15
15
class _Demo extends State <CupertinoSliderDemo > {
16
16
double value = 0.0 ;
17
+ @override
17
18
Widget build (BuildContext context) {
18
19
return CupertinoSlider (
19
20
value: value,//实际进度的位置
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class CupertinoSliverNavigationBarDemo extends StatefulWidget {
14
14
15
15
class _Demo extends State <CupertinoSliverNavigationBarDemo > {
16
16
double value = 0.0 ;
17
+ @override
17
18
Widget build (BuildContext context) {
18
19
return CupertinoPageScaffold (
19
20
child: DecoratedBox (
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class CupertinoSwitchDemo extends StatefulWidget {
14
14
15
15
class _Demo extends State <CupertinoSwitchDemo > {
16
16
bool _lights = false ;
17
+ @override
17
18
Widget build (BuildContext context) {
18
19
return MergeSemantics (
19
20
child: ListTile (
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class _Demo extends State<CupertinoTabBarDemo> {
20
20
index = _index;
21
21
});
22
22
}
23
+ @override
23
24
Widget build (BuildContext context) {
24
25
return Container (
25
26
height: 500 ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class _Demo extends State<CupertinoTabScaffoldDemo> {
20
20
index = _index;
21
21
});
22
22
}
23
+ @override
23
24
Widget build (BuildContext context) {
24
25
return SizedBox (
25
26
height: 500 ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class _Demo extends State<CupertinoTabScaffoldDemo> {
20
20
index = _index;
21
21
});
22
22
}
23
+ @override
23
24
Widget build (BuildContext context) {
24
25
return SizedBox (
25
26
height: 500 ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class _Demo extends State<CupertinoTimerPickerDemo> {
39
39
),
40
40
);
41
41
}
42
-
42
+ @override
43
43
Widget build (BuildContext context) {
44
44
return GestureDetector (
45
45
onTap: () {
You can’t perform that action at this time.
0 commit comments