@@ -227,7 +227,7 @@ class AssetPicker extends StatelessWidget {
227
227
splashFactory: InkSplash .splashFactory,
228
228
onTap: () => provider.switchPath (pathEntity),
229
229
child: SizedBox (
230
- height: 50 .0 ,
230
+ height: isIOS ? 64.0 : 52 .0 ,
231
231
child: Row (
232
232
children: < Widget > [
233
233
RepaintBoundary (
@@ -419,7 +419,13 @@ class AssetPicker extends StatelessWidget {
419
419
color:
420
420
provider.isSelectedNotEmpty ? themeColor : theme.dividerColor,
421
421
shape: RoundedRectangleBorder (
422
- borderRadius: BorderRadius .circular (3.0 )),
422
+ borderRadius: BorderRadius .circular (3.0 ),
423
+ ),
424
+ elevation: 0.0 ,
425
+ disabledElevation: 0.0 ,
426
+ focusElevation: 0.0 ,
427
+ highlightElevation: 0.0 ,
428
+ hoverElevation: 0.0 ,
423
429
child: Text (
424
430
provider.isSelectedNotEmpty
425
431
? '${Constants .textDelegate .confirm }'
@@ -465,13 +471,21 @@ class AssetPicker extends StatelessWidget {
465
471
horizontal: 2.0 ,
466
472
vertical: 2.0 ,
467
473
),
468
- decoration: BoxDecoration (
469
- borderRadius: BorderRadius .circular (2.0 ),
470
- color: theme.iconTheme.color.withOpacity (0.75 ),
471
- ),
474
+ decoration: ! isIOS
475
+ ? BoxDecoration (
476
+ borderRadius: BorderRadius .circular (2.0 ),
477
+ color: theme.iconTheme.color.withOpacity (0.75 ),
478
+ )
479
+ : null ,
472
480
child: Text (
473
481
Constants .textDelegate.gifIndicator,
474
- style: TextStyle (color: theme.primaryColor, fontSize: 12.0 ),
482
+ style: TextStyle (
483
+ color: isIOS
484
+ ? theme.textTheme.bodyText2.color
485
+ : theme.primaryColor,
486
+ fontSize: isIOS ? 14.0 : 12.0 ,
487
+ fontWeight: isIOS ? FontWeight .w500 : FontWeight .normal,
488
+ ),
475
489
),
476
490
),
477
491
),
@@ -563,9 +577,9 @@ class AssetPicker extends StatelessWidget {
563
577
},
564
578
child: AnimatedContainer (
565
579
duration: switchingPathDuration,
566
- margin: const EdgeInsets .all (6.0 ),
567
- width: 20.0 ,
568
- height: 20.0 ,
580
+ margin: EdgeInsets .all (isIOS ? 10.0 : 6.0 ),
581
+ width: isIOS ? 28.0 : 20.0 ,
582
+ height: isIOS ? 28.0 : 20.0 ,
569
583
decoration: BoxDecoration (
570
584
border: ! selected
571
585
? Border .all (color: Colors .white, width: 2.0 )
@@ -579,8 +593,12 @@ class AssetPicker extends StatelessWidget {
579
593
child: selected
580
594
? Text (
581
595
'${selectedAssets .toList ().indexOf (asset ) + 1 }' ,
582
- style:
583
- TextStyle (color: Colors .white, fontSize: 14.0 ),
596
+ style: TextStyle (
597
+ color: Colors .white,
598
+ fontSize: isIOS ? 16.0 : 14.0 ,
599
+ fontWeight:
600
+ isIOS ? FontWeight .w600 : FontWeight .normal,
601
+ ),
584
602
)
585
603
: const SizedBox .shrink (),
586
604
),
@@ -768,12 +786,16 @@ class AssetPicker extends StatelessWidget {
768
786
child: isIOS
769
787
? GestureDetector (
770
788
onTap: Navigator .of (context).maybePop,
771
- child: SizedBox (
772
- width: 60.0 ,
773
- child: Center (
774
- child: Text (
775
- Constants .textDelegate.cancel,
776
- style: const TextStyle (fontSize: 18.0 ),
789
+ child: Container (
790
+ margin: isIOS
791
+ ? const EdgeInsets .symmetric (horizontal: 20.0 )
792
+ : null ,
793
+ child: IntrinsicWidth (
794
+ child: Center (
795
+ child: Text (
796
+ Constants .textDelegate.cancel,
797
+ style: const TextStyle (fontSize: 18.0 ),
798
+ ),
777
799
),
778
800
),
779
801
),
0 commit comments