fix(jobs): Make jobs panel take less space

Closes: #136
pull/157/head
Inex Code 2022-12-31 07:51:47 +03:00
parent 3feb5acf71
commit e2a9493b61
1 changed files with 20 additions and 23 deletions

View File

@ -15,7 +15,7 @@ class BrandBottomSheet extends StatelessWidget {
Widget build(final BuildContext context) { Widget build(final BuildContext context) {
final double mainHeight = MediaQuery.of(context).size.height - final double mainHeight = MediaQuery.of(context).size.height -
MediaQuery.of(context).padding.top - MediaQuery.of(context).padding.top -
100; 300;
late Widget innerWidget; late Widget innerWidget;
if (isExpended) { if (isExpended) {
innerWidget = Scaffold( innerWidget = Scaffold(
@ -29,9 +29,7 @@ class BrandBottomSheet extends StatelessWidget {
child: IntrinsicHeight(child: child), child: IntrinsicHeight(child: child),
); );
} }
return ConstrainedBox( return Column(
constraints: BoxConstraints(maxHeight: mainHeight + 4 + 6),
child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Center( Center(
@ -53,7 +51,6 @@ class BrandBottomSheet extends StatelessWidget {
), ),
), ),
], ],
),
); );
} }
} }