feat: refactor financial wallet UI components and add offline map service support

This commit is contained in:
Hamza-Ayed
2026-04-21 00:35:30 +03:00
parent 4293d20561
commit b92db3bb39
99 changed files with 22888 additions and 27387 deletions

View File

@@ -9,29 +9,27 @@ class MyScafolld extends StatelessWidget {
super.key,
required this.title,
required this.body,
this.action = const Icon(
Icons.clear,
color: AppColor.secondaryColor,
),
this.action,
required this.isleading,
});
final String title;
final List<Widget> body;
final Widget action;
final Widget? action;
final bool isleading;
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Scaffold(
backgroundColor: AppColor.secondaryColor,
backgroundColor: theme.scaffoldBackgroundColor,
appBar: AppBar(
backgroundColor: AppColor.secondaryColor,
backgroundColor: theme.appBarTheme.backgroundColor,
elevation: 0,
leading: isleading
? IconButton(
onPressed: () {
Get.back();
Navigator.maybePop(context);
},
icon: const Icon(
Icons.arrow_back_ios_new,
@@ -39,12 +37,19 @@ class MyScafolld extends StatelessWidget {
),
)
: const SizedBox(),
actions: [action],
actions: [
action ??
Icon(
Icons.clear,
color: Colors.transparent,
)
],
title: Text(
title,
style: AppStyle.title.copyWith(fontSize: 30),
style: theme.textTheme.titleLarge?.copyWith(fontSize: 24, fontWeight: FontWeight.bold),
),
),
body: SafeArea(child: Stack(children: body)));
}
}