fix : bottom sheet height
This commit is contained in:
@@ -3,13 +3,15 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:rasadyar_core/presentation/common/app_color.dart';
|
import 'package:rasadyar_core/presentation/common/app_color.dart';
|
||||||
|
|
||||||
class BaseBottomSheet extends StatelessWidget {
|
class BaseBottomSheet extends StatelessWidget {
|
||||||
const BaseBottomSheet({super.key, required this.child});
|
const BaseBottomSheet({super.key, required this.child, this.height});
|
||||||
|
|
||||||
final Widget child;
|
final Widget child;
|
||||||
|
final double? height;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
|
height: height ?? MediaQuery.of(context).size.height * 0.85,
|
||||||
padding: EdgeInsets.symmetric(vertical: 15, horizontal: 20),
|
padding: EdgeInsets.symmetric(vertical: 15, horizontal: 20),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
|
|||||||
@@ -37,7 +37,10 @@ class TaggingPage extends GetView<TaggingLogic> {
|
|||||||
SizedBox(width: 4),
|
SizedBox(width: 4),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Get.bottomSheet(_buildBottomSheet(), isScrollControlled: true);
|
Get.bottomSheet(
|
||||||
|
_buildBottomSheet(),
|
||||||
|
isScrollControlled: true,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
style: IconButton.styleFrom(
|
style: IconButton.styleFrom(
|
||||||
backgroundColor: AppColor.blueNormal,
|
backgroundColor: AppColor.blueNormal,
|
||||||
|
|||||||
Reference in New Issue
Block a user