fix : bottom sheet height

This commit is contained in:
2025-05-27 08:48:35 +03:30
parent aa724c72a4
commit 04b8fe593f
2 changed files with 7 additions and 2 deletions

View File

@@ -3,13 +3,15 @@ import 'package:flutter/material.dart';
import 'package:rasadyar_core/presentation/common/app_color.dart';
class BaseBottomSheet extends StatelessWidget {
const BaseBottomSheet({super.key, required this.child});
const BaseBottomSheet({super.key, required this.child, this.height});
final Widget child;
final double? height;
@override
Widget build(BuildContext context) {
return Container(
height: height ?? MediaQuery.of(context).size.height * 0.85,
padding: EdgeInsets.symmetric(vertical: 15, horizontal: 20),
decoration: BoxDecoration(
color: Colors.white,

View File

@@ -37,7 +37,10 @@ class TaggingPage extends GetView<TaggingLogic> {
SizedBox(width: 4),
IconButton(
onPressed: () {
Get.bottomSheet(_buildBottomSheet(), isScrollControlled: true);
Get.bottomSheet(
_buildBottomSheet(),
isScrollControlled: true,
);
},
style: IconButton.styleFrom(
backgroundColor: AppColor.blueNormal,