mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 07:28:14 -07:00
fix: Small bugfixes (#303)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
d96cafecff
commit
5bf4579a49
8 changed files with 48 additions and 51 deletions
|
|
@ -18,6 +18,7 @@ Future<void> showBottomSheetPill({
|
|||
ScrollController scrollController,
|
||||
) content,
|
||||
}) async {
|
||||
final screenSize = MediaQuery.sizeOf(context);
|
||||
await showModalBottomSheet(
|
||||
isScrollControlled: true,
|
||||
useRootNavigator: true,
|
||||
|
|
@ -25,9 +26,8 @@ Future<void> showBottomSheetPill({
|
|||
enableDrag: true,
|
||||
context: context,
|
||||
constraints: AdaptiveLayout.viewSizeOf(context) == ViewSize.phone
|
||||
? BoxConstraints(maxHeight: MediaQuery.of(context).size.height * 0.9)
|
||||
: BoxConstraints(
|
||||
maxWidth: MediaQuery.of(context).size.width * 0.75, maxHeight: MediaQuery.of(context).size.height * 0.85),
|
||||
? BoxConstraints(maxHeight: screenSize.height * 0.9)
|
||||
: BoxConstraints(maxWidth: screenSize.width * 0.75, maxHeight: screenSize.height * 0.85),
|
||||
builder: (context) {
|
||||
final controller = ScrollController();
|
||||
return ListView(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue