mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-02-02 14:16:58 +00:00
parent
3feb5acf71
commit
e2a9493b61
|
@ -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,31 +29,28 @@ class BrandBottomSheet extends StatelessWidget {
|
||||||
child: IntrinsicHeight(child: child),
|
child: IntrinsicHeight(child: child),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return ConstrainedBox(
|
return Column(
|
||||||
constraints: BoxConstraints(maxHeight: mainHeight + 4 + 6),
|
mainAxisSize: MainAxisSize.min,
|
||||||
child: Column(
|
children: [
|
||||||
mainAxisSize: MainAxisSize.min,
|
Center(
|
||||||
children: [
|
child: Container(
|
||||||
Center(
|
height: 4,
|
||||||
child: Container(
|
width: 30,
|
||||||
height: 4,
|
decoration: BoxDecoration(
|
||||||
width: 30,
|
borderRadius: BorderRadius.circular(2),
|
||||||
decoration: BoxDecoration(
|
color: BrandColors.gray4,
|
||||||
borderRadius: BorderRadius.circular(2),
|
|
||||||
color: BrandColors.gray4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 6),
|
),
|
||||||
ClipRRect(
|
const SizedBox(height: 6),
|
||||||
borderRadius: const BorderRadius.vertical(top: Radius.circular(20)),
|
ClipRRect(
|
||||||
child: ConstrainedBox(
|
borderRadius: const BorderRadius.vertical(top: Radius.circular(20)),
|
||||||
constraints: BoxConstraints(maxHeight: mainHeight),
|
child: ConstrainedBox(
|
||||||
child: innerWidget,
|
constraints: BoxConstraints(maxHeight: mainHeight),
|
||||||
),
|
child: innerWidget,
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue