Skip to content

Commit 77896f8

Browse files
committed
💄 Adjust AppleOS layout.
1 parent 676b76c commit 77896f8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/src/widget/asset_picker.dart

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,7 @@ class AssetPicker extends StatelessWidget {
487487
/// 路径选择列表组件
488488
Widget get pathEntityListWidget {
489489
final double appBarHeight = kToolbarHeight + Screens.topSafeHeight;
490-
final double maxHeight =
491-
isAppleOS ? Screens.height - appBarHeight : Screens.height * 0.825;
490+
final double maxHeight = Screens.height * 0.825;
492491
return Selector<AssetPickerProvider, bool>(
493492
selector: (BuildContext _, AssetPickerProvider provider) =>
494493
provider.isSwitchingPath,
@@ -506,7 +505,13 @@ class AssetPicker extends StatelessWidget {
506505
child: Container(
507506
width: Screens.width,
508507
height: maxHeight,
509-
decoration: BoxDecoration(color: theme.colorScheme.background),
508+
decoration: BoxDecoration(
509+
borderRadius: isAppleOS ? const BorderRadius.only(
510+
bottomLeft: Radius.circular(10.0),
511+
bottomRight: Radius.circular(10.0),
512+
) : null,
513+
color: theme.colorScheme.background,
514+
),
510515
child: Selector<AssetPickerProvider,
511516
Map<AssetPathEntity, Uint8List>>(
512517
selector: (BuildContext _, AssetPickerProvider provider) =>
@@ -1263,6 +1268,7 @@ class AssetPicker extends StatelessWidget {
12631268
],
12641269
),
12651270
),
1271+
pathEntityListBackdrop,
12661272
pathEntityListWidget,
12671273
],
12681274
)

0 commit comments

Comments
 (0)