File tree Expand file tree Collapse file tree 7 files changed +17
-17
lines changed Expand file tree Collapse file tree 7 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class _HomePageState extends State<HomePage> {
68
68
mainAxisAlignment: MainAxisAlignment .spaceEvenly,
69
69
crossAxisAlignment: CrossAxisAlignment .start,
70
70
children: < Widget > [
71
- Text (
71
+ const Text (
72
72
'WeChat Asset Picker' ,
73
73
style: TextStyle (
74
74
fontSize: 18.0 ,
@@ -112,14 +112,14 @@ class _HomePageState extends State<HomePage> {
112
112
bottomNavigationBar: BottomNavigationBar (
113
113
currentIndex: currentIndex,
114
114
onTap: selectIndex,
115
- items: < BottomNavigationBarItem > [
115
+ items: const < BottomNavigationBarItem > [
116
116
BottomNavigationBarItem (
117
117
icon: Icon (Icons .photo_library),
118
- title: const Text ('Multi' ),
118
+ title: Text ('Multi' ),
119
119
),
120
120
BottomNavigationBarItem (
121
121
icon: Icon (Icons .photo),
122
- title: const Text ('Single' ),
122
+ title: Text ('Single' ),
123
123
),
124
124
],
125
125
),
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ class _MultiAssetsPageState extends State<MultiAssetsPage> {
261
261
children: < Widget > [
262
262
Text (
263
263
model.name,
264
- style: TextStyle (
264
+ style: const TextStyle (
265
265
fontSize: 18.0 ,
266
266
fontWeight: FontWeight .bold,
267
267
),
@@ -275,7 +275,7 @@ class _MultiAssetsPageState extends State<MultiAssetsPage> {
275
275
],
276
276
),
277
277
),
278
- Icon (
278
+ const Icon (
279
279
Icons .chevron_right,
280
280
color: Colors .grey,
281
281
),
@@ -453,13 +453,13 @@ class _MultiAssetsPageState extends State<MultiAssetsPage> {
453
453
horizontal: 10.0 ,
454
454
),
455
455
padding: const EdgeInsets .all (4.0 ),
456
- decoration: BoxDecoration (
456
+ decoration: const BoxDecoration (
457
457
shape: BoxShape .circle,
458
458
color: Colors .grey,
459
459
),
460
460
child: Text (
461
461
'${assets .length }' ,
462
- style: TextStyle (
462
+ style: const TextStyle (
463
463
color: Colors .white,
464
464
height: 1.0 ,
465
465
),
Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ class _SingleAssetPageState extends State<SingleAssetPage> {
256
256
children: < Widget > [
257
257
Text (
258
258
model.name,
259
- style: TextStyle (
259
+ style: const TextStyle (
260
260
fontSize: 18.0 ,
261
261
fontWeight: FontWeight .bold,
262
262
),
@@ -268,7 +268,7 @@ class _SingleAssetPageState extends State<SingleAssetPage> {
268
268
],
269
269
),
270
270
),
271
- Icon (
271
+ const Icon (
272
272
Icons .chevron_right,
273
273
color: Colors .grey,
274
274
),
Original file line number Diff line number Diff line change @@ -834,7 +834,7 @@ class AssetPicker extends StatelessWidget {
834
834
reverseDuration: switchingPathDuration,
835
835
child: selected
836
836
? isSingleAssetMode
837
- ? Icon (Icons .check, size: 18.0 )
837
+ ? const Icon (Icons .check, size: 18.0 )
838
838
: Text (
839
839
'${selectedAssets .indexOf (asset ) + 1 }' ,
840
840
style: TextStyle (
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
315
315
builder: (BuildContext _, AsyncSnapshot <int > snapshot) {
316
316
return Text (
317
317
'${snapshot .data + 1 }/${widget .assets .length }' ,
318
- style: TextStyle (
318
+ style: const TextStyle (
319
319
fontSize: 18.0 ,
320
320
fontWeight: FontWeight .bold,
321
321
),
@@ -498,7 +498,7 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
498
498
Widget _audioPreviewItem (AssetEntity asset) {
499
499
return ColoredBox (
500
500
color: context.themeData.dividerColor,
501
- child: Center (child: Icon (Icons .audiotrack)),
501
+ child: const Center (child: Icon (Icons .audiotrack)),
502
502
);
503
503
}
504
504
@@ -616,12 +616,12 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
616
616
child: isSelected
617
617
? Text (
618
618
(currentIndex + 1 ).toString (),
619
- style: TextStyle (
619
+ style: const TextStyle (
620
620
fontSize: 16.0 ,
621
621
fontWeight: FontWeight .bold,
622
622
),
623
623
)
624
- : Icon (Icons .check, size: 20.0 ),
624
+ : const Icon (Icons .check, size: 20.0 ),
625
625
),
626
626
),
627
627
),
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ class _AudioPageBuilderState extends State<AudioPageBuilder> {
129
129
},
130
130
child: Container (
131
131
margin: const EdgeInsets .all (20.0 ),
132
- decoration: BoxDecoration (
132
+ decoration: const BoxDecoration (
133
133
boxShadow: < BoxShadow > [BoxShadow (color: Colors .black12)],
134
134
shape: BoxShape .circle,
135
135
),
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ class _VideoPageBuilderState extends State<VideoPageBuilder> {
140
140
child: GestureDetector (
141
141
onTap: playButtonCallback,
142
142
child: DecoratedBox (
143
- decoration: BoxDecoration (
143
+ decoration: const BoxDecoration (
144
144
boxShadow: < BoxShadow > [
145
145
BoxShadow (color: Colors .black12)
146
146
],
You can’t perform that action at this time.
0 commit comments