File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -526,7 +526,15 @@ class DefaultAssetPickerBuilderDelegate
526
526
centerTitle: isAppleOS,
527
527
title: pathEntitySelector (context),
528
528
leading: backButton (context),
529
- actions: ! isAppleOS && (isPreviewEnabled || ! isSingleAssetMode)
529
+ // Condition for displaying the confirm button:
530
+ // - On Android, show if preview is enabled or if multi asset mode.
531
+ // If no preview and single asset mode, do not show confirm button,
532
+ // because any click on an asset selects it.
533
+ // - On iOS, show if no preview and multi asset mode. This is because for iOS
534
+ // the [bottomActionBar] has the confirm button, but if no preview,
535
+ // [bottomActionBar] is not displayed.
536
+ actions: (! isAppleOS || ! isPreviewEnabled) &&
537
+ (isPreviewEnabled || ! isSingleAssetMode)
530
538
? < Widget > [confirmButton (context)]
531
539
: null ,
532
540
actionsPadding: const EdgeInsets .only (right: 14.0 ),
You canāt perform that action at this time.
0 commit comments