From b045980bb436f7533caaa011130aa568a3145fc7 Mon Sep 17 00:00:00 2001 From: Armand <4831c0@proton.me> Date: Wed, 17 Sep 2025 13:40:05 +0200 Subject: [PATCH] lesson: fix popup height --- firka/lib/helpers/ui/common_bottom_sheets.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/firka/lib/helpers/ui/common_bottom_sheets.dart b/firka/lib/helpers/ui/common_bottom_sheets.dart index 745bf88..36af852 100644 --- a/firka/lib/helpers/ui/common_bottom_sheets.dart +++ b/firka/lib/helpers/ui/common_bottom_sheets.dart @@ -34,10 +34,6 @@ Future showLessonBottomSheet( enableDrag: true, backgroundColor: Colors.transparent, barrierColor: appStyle.colors.a15p, - constraints: BoxConstraints( - maxHeight: MediaQuery.of(context).size.height * - (statsForNerdsEnabled ? 0.35 : 0.3), - ), builder: (BuildContext context) { Widget statsForNerds = SizedBox(); @@ -70,9 +66,10 @@ Future showLessonBottomSheet( borderRadius: BorderRadius.vertical(top: Radius.circular(16)), ), child: Padding( - padding: const EdgeInsets.all(16.0), + padding: const EdgeInsets.all(16) + EdgeInsets.only(bottom: 32), child: Column( crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, children: [ Row( children: [