Update: 2026-07-13 18:23:52
This commit is contained in:
@@ -8,6 +8,8 @@ import '../../constant/colors.dart';
|
||||
import '../../constant/style.dart';
|
||||
import '../../env/env.dart';
|
||||
import '../../controller/transit/transit_controller.dart';
|
||||
import 'transit_qr_code_page.dart';
|
||||
import '../widgets/elevated_btn.dart';
|
||||
|
||||
// ── ألوان الصفحة ──────────────────────────────────────────────────────────────
|
||||
Color get _bg =>
|
||||
@@ -191,7 +193,7 @@ class _TransitMapPageState extends State<TransitMapPage> {
|
||||
shape: BoxShape.circle,
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.12),
|
||||
color: Colors.black.withValues(alpha: 0.12),
|
||||
blurRadius: 10,
|
||||
offset: const Offset(0, 3))
|
||||
],
|
||||
@@ -211,7 +213,7 @@ class _TransitMapPageState extends State<TransitMapPage> {
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.08),
|
||||
color: Colors.black.withValues(alpha: 0.08),
|
||||
blurRadius: 10,
|
||||
offset: const Offset(0, 3))
|
||||
],
|
||||
@@ -263,7 +265,7 @@ class _TransitMapPageState extends State<TransitMapPage> {
|
||||
shape: BoxShape.circle,
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: _accent.withOpacity(0.4),
|
||||
color: _accent.withValues(alpha: 0.4),
|
||||
blurRadius: 10,
|
||||
offset: const Offset(0, 3))
|
||||
],
|
||||
@@ -353,7 +355,7 @@ class _TransitMapPageState extends State<TransitMapPage> {
|
||||
borderRadius: BorderRadius.circular(14),
|
||||
border: Border(right: BorderSide(color: color, width: 4)),
|
||||
boxShadow: [
|
||||
BoxShadow(color: Colors.black.withOpacity(0.08), blurRadius: 8)
|
||||
BoxShadow(color: Colors.black.withValues(alpha: 0.08), blurRadius: 8)
|
||||
],
|
||||
),
|
||||
child: Text(text,
|
||||
@@ -390,7 +392,7 @@ class _InfoCard extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.12),
|
||||
color: Colors.black.withValues(alpha: 0.12),
|
||||
blurRadius: 20,
|
||||
offset: const Offset(0, -4))
|
||||
],
|
||||
@@ -406,7 +408,7 @@ class _InfoCard extends StatelessWidget {
|
||||
width: 44,
|
||||
height: 44,
|
||||
decoration: BoxDecoration(
|
||||
color: _accent.withOpacity(0.12),
|
||||
color: _accent.withValues(alpha: 0.12),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
child: const Icon(Icons.directions_bus_rounded,
|
||||
@@ -476,7 +478,7 @@ class _InfoCard extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
child: LinearProgressIndicator(
|
||||
value: currentStopSeq! / totalStops,
|
||||
backgroundColor: _accent.withOpacity(0.12),
|
||||
backgroundColor: _accent.withValues(alpha: 0.12),
|
||||
valueColor: const AlwaysStoppedAnimation<Color>(_accent),
|
||||
minHeight: 6,
|
||||
),
|
||||
@@ -485,13 +487,28 @@ class _InfoCard extends StatelessWidget {
|
||||
|
||||
const SizedBox(height: 12),
|
||||
|
||||
// ── زر "بطاقة الصعود" (Boarding Pass) ─────────────────
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
height: 55,
|
||||
child: MyElevatedButton(
|
||||
onPressed: () {
|
||||
Get.to(() => const TransitQRCodePage());
|
||||
},
|
||||
kolor: _accent,
|
||||
title: 'بطاقة الصعود (Boarding Pass)'.tr,
|
||||
),
|
||||
),
|
||||
|
||||
const SizedBox(height: 8),
|
||||
|
||||
// ── زر "فاتك الباص؟" ─────────────────────────
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
child: OutlinedButton.icon(
|
||||
onPressed: onMissedBus,
|
||||
style: OutlinedButton.styleFrom(
|
||||
side: BorderSide(color: _accent.withOpacity(0.5)),
|
||||
side: BorderSide(color: _accent.withValues(alpha: 0.5)),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(12)),
|
||||
padding: const EdgeInsets.symmetric(vertical: 10),
|
||||
|
||||
Reference in New Issue
Block a user