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

@@ -44,11 +44,9 @@ class MyDialog extends GetxController {
sigmaX: DialogConfig.blurStrength,
sigmaY: DialogConfig.blurStrength,
),
child: Theme(
data: ThemeData.light().copyWith(
dialogBackgroundColor: CupertinoColors.systemBackground,
),
child: CupertinoAlertDialog(
child: Builder(builder: (context) {
final theme = Theme.of(context);
return CupertinoAlertDialog(
title: Column(
children: [
Text(
@@ -92,7 +90,7 @@ class MyDialog extends GetxController {
style: AppStyle.title.copyWith(
fontSize: 16,
height: 1.3,
color: Colors.black87,
color: theme.textTheme.bodyLarge?.color ?? AppColor.writeColor,
),
textAlign: TextAlign.center,
),
@@ -102,7 +100,7 @@ class MyDialog extends GetxController {
CupertinoDialogAction(
onPressed: () {
HapticFeedback.lightImpact();
Get.back();
Navigator.of(context, rootNavigator: true).pop();
},
child: Text(
'Cancel'.tr,
@@ -116,6 +114,7 @@ class MyDialog extends GetxController {
CupertinoDialogAction(
onPressed: () {
HapticFeedback.mediumImpact();
Navigator.of(context, rootNavigator: true).pop();
onPressed();
},
child: Text(
@@ -128,10 +127,11 @@ class MyDialog extends GetxController {
),
),
],
),
),
);
}),
),
),
barrierDismissible: true,
barrierColor: Colors.black.withAlpha(102), // 0.4 opacity
);
@@ -159,11 +159,8 @@ class MyDialogContent extends GetxController {
sigmaX: DialogConfig.blurStrength,
sigmaY: DialogConfig.blurStrength,
),
child: Theme(
data: ThemeData.light().copyWith(
dialogBackgroundColor: CupertinoColors.systemBackground,
),
child: CupertinoAlertDialog(
child: Builder(builder: (context) {
return CupertinoAlertDialog(
title: Column(
children: [
Text(
@@ -208,7 +205,7 @@ class MyDialogContent extends GetxController {
CupertinoDialogAction(
onPressed: () {
HapticFeedback.lightImpact();
Get.back();
Navigator.of(context, rootNavigator: true).pop();
},
child: Text(
'Cancel',
@@ -222,6 +219,7 @@ class MyDialogContent extends GetxController {
CupertinoDialogAction(
onPressed: () {
HapticFeedback.mediumImpact();
Navigator.of(context, rootNavigator: true).pop();
onPressed();
},
child: Text(
@@ -234,10 +232,11 @@ class MyDialogContent extends GetxController {
),
),
],
),
),
);
}),
),
),
barrierDismissible: true,
barrierColor: Colors.black.withAlpha(102), // 0.4 opacity
);