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';
|
||||
|
||||
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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user