Skip to content

Commit 40dcf9e

Browse files
committed
💄 Use ClipRect to clip the overflowed part
1 parent 3910c9c commit 40dcf9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/delegates/asset_picker_builder_delegate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ class DefaultAssetPickerBuilderDelegate
622622
);
623623
}
624624

625-
/// There're several conditions within this builder:
625+
/// There are several conditions within this builder:
626626
/// * Return [specialItemBuilder] while the current path is all and
627627
/// [specialItemPosition] is not equal to [SpecialItemPosition.none].
628628
/// * Return item builder according to the asset's type.

lib/src/widget/asset_picker_page_route.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class AssetPickerPageRoute<T> extends PageRoute<T> {
6161
).animate(
6262
CurvedAnimation(curve: transitionCurve, parent: animation),
6363
),
64-
child: child,
64+
child: ClipRect(child: child), // Clip the overflowed part.
6565
);
6666
}
6767
}

0 commit comments

Comments
 (0)