feat: refactor financial wallet UI components and add offline map service support
This commit is contained in:
@@ -2,7 +2,7 @@ import 'dart:convert';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:google_maps_flutter/google_maps_flutter.dart'; // لتحديد الأنواع إذا لزم
|
||||
import 'package:intaleq_maps/intaleq_maps.dart'; // لتحديد الأنواع إذا لزم
|
||||
|
||||
import '../../constant/box_name.dart';
|
||||
import '../../constant/colors.dart';
|
||||
@@ -114,7 +114,7 @@ class RideAvailableCard extends StatelessWidget {
|
||||
margin: const EdgeInsets.only(bottom: 16.0),
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
||||
elevation: 4,
|
||||
shadowColor: Colors.black.withOpacity(0.1),
|
||||
shadowColor: Theme.of(context).shadowColor.withOpacity(0.1),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Column(
|
||||
@@ -179,7 +179,7 @@ class RideAvailableCard extends StatelessWidget {
|
||||
Container(
|
||||
height: 30,
|
||||
width: 1,
|
||||
color: Colors.grey.shade300,
|
||||
color: Theme.of(Get.context!).dividerColor,
|
||||
margin: const EdgeInsets.symmetric(vertical: 4),
|
||||
),
|
||||
const Icon(Icons.location_on, color: Colors.red, size: 18),
|
||||
@@ -218,15 +218,17 @@ class RideAvailableCard extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _infoItem(IconData icon, String text,
|
||||
{Color iconColor = Colors.grey}) {
|
||||
return Row(
|
||||
children: [
|
||||
Icon(icon, size: 16, color: iconColor),
|
||||
const SizedBox(width: 4),
|
||||
Text(text, style: AppStyle.subtitle.copyWith(fontSize: 13)),
|
||||
],
|
||||
);
|
||||
Widget _infoItem(IconData icon, String text, {Color? iconColor}) {
|
||||
return Builder(builder: (context) {
|
||||
final theme = Theme.of(context);
|
||||
return Row(
|
||||
children: [
|
||||
Icon(icon, size: 16, color: iconColor ?? theme.hintColor),
|
||||
const SizedBox(width: 4),
|
||||
Text(text, style: theme.textTheme.bodySmall?.copyWith(fontSize: 13)),
|
||||
],
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user