TF-1611 Fix bottom padding too large in vacation view
(cherry picked from commit 943102f54285fc3c9291160cc685e42bbdfbf168)
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user