Apply new style Language section in Setting on desktop

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-07-03 16:54:23 +07:00
committed by Dat H. Pham
parent de596a76d6
commit 8289593247
11 changed files with 319 additions and 312 deletions
@@ -22,28 +22,40 @@ class SettingDetailViewBuilder extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: SettingsUtils.getBackgroundColor(context, responsiveUtils),
body: GestureDetector(
onTap: onTapGestureDetector,
child: Container(
width: double.infinity,
height: double.infinity,
color: SettingsUtils.getContentBackgroundColor(
context,
responsiveUtils,
backgroundColor: backgroundColor,
),
decoration: SettingsUtils.getBoxDecorationForContent(
context,
responsiveUtils,
backgroundColor: backgroundColor,
),
margin: SettingsUtils.getMarginSettingDetailsView(context, responsiveUtils),
padding: padding,
child: child,
),
Widget containerWidget = Container(
width: double.infinity,
height: double.infinity,
color: SettingsUtils.getContentBackgroundColor(
context,
responsiveUtils,
backgroundColor: backgroundColor,
),
decoration: SettingsUtils.getBoxDecorationForContent(
context,
responsiveUtils,
backgroundColor: backgroundColor,
),
margin: SettingsUtils.getMarginSettingDetailsView(
context,
responsiveUtils,
),
padding: padding,
child: child,
);
if (onTapGestureDetector != null) {
containerWidget = GestureDetector(
onTap: onTapGestureDetector,
child: containerWidget,
);
}
return Scaffold(
backgroundColor: SettingsUtils.getBackgroundColor(
context,
responsiveUtils,
),
body: containerWidget,
);
}
}