color theme and padding for the non-visible parts of the devices (andorid, ios)

This commit is contained in:
Juan Marulanda De Los Rios 2025-06-24 12:06:27 -04:00
parent fb31051b03
commit 5d4bc01a59
2 changed files with 233 additions and 224 deletions

View File

@ -170,7 +170,9 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
@override
Widget build(BuildContext context) {
return Padding(
return Scaffold(
backgroundColor: Theme.of(context).colorScheme.onPrimary,
body: Padding(
padding: const EdgeInsets.fromLTRB(0, 20, 0 , 20),
child: Scaffold(
key: _scaffoldKey,
@ -180,6 +182,8 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
_emailPageKey.currentState?.updateSelectedFolder(folder);
},
),
body: Scaffold(
backgroundColor: Theme.of(context).colorScheme.onPrimary,
body: Padding(
padding: const EdgeInsets.fromLTRB(0, 20, 0, 0),
child: Stack(
@ -412,6 +416,8 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
),
),
),
),
),
);
}
}

View File

@ -17,7 +17,10 @@ class HyM extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData.light(),
theme: ThemeData(
colorScheme: ColorScheme.light(),
useMaterial3: true,
),
title: 'HyM',
// home: HomeScreen(),
initialRoute: "/",