Skip to content

Commit

Permalink
chore: Follow up desktop bottom sheet
Browse files Browse the repository at this point in the history
Signed-off-by: Krille <[email protected]>
  • Loading branch information
krille-chan committed Dec 9, 2024
1 parent dea2916 commit 365c49c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/utils/adaptive_bottom_sheet.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:flutter/material.dart';

import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/config/themes.dart';
import 'package:flutter/material.dart';

Future<T?> showAdaptiveBottomSheet<T>({
required BuildContext context,
Expand All @@ -15,8 +14,9 @@ Future<T?> showAdaptiveBottomSheet<T>({
return showModalBottomSheet(
context: context,
builder: (context) => Padding(
padding:
dialogMode ? const EdgeInsets.only(bottom: 32.0) : EdgeInsets.zero,
padding: dialogMode
? const EdgeInsets.symmetric(vertical: 32.0)
: EdgeInsets.zero,
child: ClipRRect(
borderRadius: dialogMode
? BorderRadius.circular(AppConfig.borderRadius)
Expand All @@ -31,8 +31,8 @@ Future<T?> showAdaptiveBottomSheet<T>({
isDismissible: isDismissible,
isScrollControlled: isScrollControlled,
constraints: BoxConstraints(
maxHeight: maxHeight + (dialogMode ? 32 : 0),
maxWidth: FluffyThemes.columnWidth * 1.25 + 64,
maxHeight: maxHeight + (dialogMode ? 64 : 0),
maxWidth: FluffyThemes.columnWidth * 1.25,
),
backgroundColor: Colors.transparent,
showDragHandle: !dialogMode,
Expand Down

0 comments on commit 365c49c

Please sign in to comment.