Optimize and refactor for MailboxVisibility
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/presentation/menu/settings_utils.dart';
|
||||
|
||||
class SettingDetailViewBuilder extends StatelessWidget {
|
||||
|
||||
final ResponsiveUtils responsiveUtils;
|
||||
final Widget child;
|
||||
|
||||
const SettingDetailViewBuilder({
|
||||
super.key,
|
||||
required this.responsiveUtils,
|
||||
required this.child
|
||||
});
|
||||
|
||||
@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,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user