Skip to content

Commit 28c03f2

Browse files
committed
💄 Fix padding issue for the assets grid
1 parent aabc243 commit 28c03f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/src/delegates/asset_picker_builder_delegate.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ abstract class AssetPickerBuilderDelegate<A, P> {
261261
controller: gridScrollController,
262262
slivers: <Widget>[
263263
if (isAppleOS)
264-
SliverPadding(
265-
padding: EdgeInsetsDirectional.only(
266-
top: Screens.topSafeHeight + kToolbarHeight,
264+
SliverToBoxAdapter(
265+
child: SizedBox(
266+
height: Screens.topSafeHeight + kToolbarHeight,
267267
),
268268
),
269269
SliverGrid(
@@ -293,9 +293,9 @@ abstract class AssetPickerBuilderDelegate<A, P> {
293293
),
294294
),
295295
if (isAppleOS)
296-
SliverPadding(
297-
padding: EdgeInsetsDirectional.only(
298-
bottom: bottomActionBarHeight,
296+
SliverToBoxAdapter(
297+
child: SizedBox(
298+
height: Screens.bottomSafeHeight + bottomActionBarHeight,
299299
),
300300
),
301301
],

0 commit comments

Comments
 (0)