@@ -401,7 +401,7 @@ class DefaultAssetPickerViewerBuilderDelegate
401
401
402
402
@override
403
403
Widget bottomDetailBuilder (BuildContext context) {
404
- final Color _backgroundColor = themeData.canvasColor .withOpacity (0.85 );
404
+ final Color _backgroundColor = themeData.primaryColor .withOpacity (. 9 );
405
405
return ValueListenableBuilder2 <bool , int >(
406
406
firstNotifier: isDisplayingDetail,
407
407
secondNotifier: selectedNotifier,
@@ -445,7 +445,7 @@ class DefaultAssetPickerViewerBuilderDelegate
445
445
border: Border (
446
446
top: BorderSide (
447
447
width: 1.0 ,
448
- color: themeData.dividerColor ,
448
+ color: themeData.canvasColor ,
449
449
),
450
450
),
451
451
color: _backgroundColor,
@@ -554,32 +554,37 @@ class DefaultAssetPickerViewerBuilderDelegate
554
554
child: child! ,
555
555
),
556
556
child: Container (
557
- padding: EdgeInsetsDirectional .only (
558
- top: Screens .topSafeHeight,
559
- end: 14.0 ,
560
- ),
561
- color: themeData.canvasColor.withOpacity (0.85 ),
562
- child: Row (
557
+ padding: EdgeInsetsDirectional .only (top: Screens .topSafeHeight),
558
+ color: themeData.canvasColor,
559
+ child: Stack (
560
+ fit: StackFit .expand,
563
561
children: < Widget > [
564
- const BackButton (),
562
+ Row (
563
+ children: < Widget > [
564
+ const BackButton (),
565
+ const Spacer (),
566
+ if (isAppleOS && provider != null ) selectButton (context),
567
+ if (! isAppleOS && (provider != null || isWeChatMoment))
568
+ Padding (
569
+ padding: const EdgeInsetsDirectional .only (end: 14 ),
570
+ child: confirmButton (context),
571
+ ),
572
+ ],
573
+ ),
565
574
if (! isAppleOS && specialPickerType == null )
566
575
StreamBuilder <int >(
567
576
initialData: currentIndex,
568
577
stream: pageStreamController.stream,
569
- builder: (BuildContext _, AsyncSnapshot <int > snapshot) {
570
- return Text (
578
+ builder: (_, AsyncSnapshot <int > snapshot) => Center (
579
+ child : Text (
571
580
'${snapshot .data ! + 1 }/${previewAssets .length }' ,
572
581
style: const TextStyle (
573
582
fontSize: 18.0 ,
574
583
fontWeight: FontWeight .bold,
575
584
),
576
- );
577
- } ,
585
+ ),
586
+ ) ,
578
587
),
579
- const Spacer (),
580
- if (isAppleOS && provider != null ) selectButton (context),
581
- if (! isAppleOS && (provider != null || isWeChatMoment))
582
- confirmButton (context),
583
588
],
584
589
),
585
590
),
0 commit comments