mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt: matrix anim (#1829)
This commit is contained in:
committed by
GitHub
parent
4ac855d393
commit
8234b7ac92
@@ -575,24 +575,17 @@ abstract final class PageUtils {
|
||||
List<SourceModel> imgList,
|
||||
int index,
|
||||
) {
|
||||
final animController = AnimationController(
|
||||
vsync: state,
|
||||
duration: Duration.zero,
|
||||
reverseDuration: Duration.zero,
|
||||
);
|
||||
state.showBottomSheet(
|
||||
constraints: const BoxConstraints(),
|
||||
(context) => InteractiveviewerGallery(
|
||||
sources: imgList,
|
||||
initIndex: index,
|
||||
quality: GlobalData().imgQuality,
|
||||
onClose: animController.dispose,
|
||||
),
|
||||
enableDrag: false,
|
||||
elevation: 0.0,
|
||||
backgroundColor: Colors.transparent,
|
||||
transitionAnimationController: animController,
|
||||
sheetAnimationStyle: const AnimationStyle(duration: Duration.zero),
|
||||
sheetAnimationStyle: AnimationStyle.noAnimation,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user