change some parameters

pull/24428/head
kao-byte 2025-12-07 18:51:10 +11:00
parent dac03afe47
commit 7096912743
No known key found for this signature in database
GPG Key ID: 6BFA3A267DAB6B25
3 changed files with 7 additions and 7 deletions

View File

@ -75,7 +75,7 @@ class ActivitiesBottomSheet extends HookConsumerWidget {
controller: controller,
initialChildSize: initialChildSize,
minChildSize: 0.1,
maxChildSize: 0.88,
maxChildSize: 0.82,
expand: false,
shouldCloseOnMinExtent: false,
resizeOnScroll: false,

View File

@ -97,7 +97,7 @@ class AssetViewer extends ConsumerStatefulWidget {
}
const double _kBottomSheetMinimumExtent = 0.4;
const double _kBottomSheetSnapExtent = 0.7;
const double _kBottomSheetSnapExtent = 0.82;
class _AssetViewerState extends ConsumerState<AssetViewer> {
static final _dummyListener = ImageStreamListener((image, _) => image.dispose());
@ -405,7 +405,7 @@ class _AssetViewerState extends ConsumerState<AssetViewer> {
}
// Jump to a lower position before starting close animation to prevent glitch
if (bottomSheetController.isAttached) {
bottomSheetController.jumpTo(0.45);
bottomSheetController.jumpTo(0.55);
}
sheetCloseController?.close();
}
@ -485,8 +485,8 @@ class _AssetViewerState extends ConsumerState<AssetViewer> {
sheetCloseController = showBottomSheet(
context: ctx,
sheetAnimationStyle: const AnimationStyle(
duration: Durations.short4,
reverseDuration: Duration(milliseconds: 200),
duration: Duration(milliseconds: 300),
reverseDuration: Duration(milliseconds: 270),
),
constraints: const BoxConstraints(maxWidth: double.infinity),
shape: const RoundedRectangleBorder(borderRadius: BorderRadius.vertical(top: Radius.circular(20.0))),

View File

@ -75,7 +75,7 @@ class AssetDetailBottomSheet extends ConsumerWidget {
controller: controller,
initialChildSize: initialChildSize,
minChildSize: 0.1,
maxChildSize: 0.88,
maxChildSize: 0.82,
expand: false,
shouldCloseOnMinExtent: false,
resizeOnScroll: false,
@ -326,7 +326,7 @@ class _AssetDetailBottomSheet extends ConsumerWidget {
// Appears in (Albums)
Padding(padding: const EdgeInsets.only(top: 16.0), child: _buildAppearsInList(ref, context)),
// padding at the bottom to avoid cut-off
const SizedBox(height: 100),
const SizedBox(height: 30),
],
);
}