TF-1611 Fix bottom padding too large in vacation view

(cherry picked from commit 943102f54285fc3c9291160cc685e42bbdfbf168)
This commit is contained in:
dab246
2023-03-22 12:13:41 +07:00
committed by Dat Vu
parent 60dd32b790
commit 471713ebd7
3 changed files with 274 additions and 263 deletions
@@ -7,24 +7,32 @@ class SettingDetailViewBuilder extends StatelessWidget {
final ResponsiveUtils responsiveUtils;
final Widget child;
final EdgeInsets? padding;
final VoidCallback? onTapGestureDetector;
const SettingDetailViewBuilder({
super.key,
required this.responsiveUtils,
required this.child
required this.child,
this.padding,
this.onTapGestureDetector
});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: SettingsUtils.getBackgroundColor(context, responsiveUtils),
body: Container(
width: double.infinity,
height: double.infinity,
color: SettingsUtils.getContentBackgroundColor(context, responsiveUtils),
decoration: SettingsUtils.getBoxDecorationForContent(context, responsiveUtils),
margin: SettingsUtils.getMarginSettingDetailsView(context, responsiveUtils),
child: child,
body: GestureDetector(
onTap: onTapGestureDetector,
child: Container(
width: double.infinity,
height: double.infinity,
color: SettingsUtils.getContentBackgroundColor(context, responsiveUtils),
decoration: SettingsUtils.getBoxDecorationForContent(context, responsiveUtils),
margin: SettingsUtils.getMarginSettingDetailsView(context, responsiveUtils),
padding: padding,
child: child,
),
),
);
}