نسخة كاملة من مستودع سيرو عند ecfe7568 لتكون أساس تطبيق «انطلق». نُسخ المتعقَّب في git فقط (12,509 ملفاً / 302 م.ب) بـ git archive، لا `cp -r` — فاستُثنيت تلقائياً مخلفات البناء (build · node_modules · .dart_tool · .gradle · Pods ≈ 10.7 غ.ب) وكل ما يستثنيه .gitignore. هذا الكوميت **بلا أي تعديل عمداً** حتى يكون كل ما يليه فرقاً مقروءاً مقابل سيرو الأصلي. سيرو نفسه لم يُمسّ. ⚠️ لا يبني بعد: `.env` و`lib/env/env.g.dart` غير متعقَّبين في سيرو (وهذا صحيح — أسرار لكل مستأجر). كل تطبيق فلاتر هنا يحتاج .env خاصاً بانطلق ثم توليد env.g.dart عبر build_runner. لا تُنسخ أسرار سيرو. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
72 lines
2.2 KiB
Dart
72 lines
2.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:siro_rider/constant/colors.dart';
|
|
import 'package:siro_rider/constant/style.dart';
|
|
import 'package:siro_rider/controller/payment/payment_controller.dart';
|
|
|
|
import '../../../constant/box_name.dart';
|
|
import '../../../main.dart';
|
|
import '../my_wallet/passenger_wallet.dart';
|
|
|
|
class PointsCaptain extends StatelessWidget {
|
|
PaymentController paymentController = Get.put(PaymentController());
|
|
|
|
PointsCaptain({
|
|
super.key,
|
|
required this.kolor,
|
|
required this.countPoint,
|
|
required this.pricePoint,
|
|
});
|
|
final Color kolor;
|
|
final String countPoint;
|
|
double pricePoint;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
onTap: () async {
|
|
Get.to(() => const PassengerWallet());
|
|
paymentController.changePromoSheetDialogue();
|
|
},
|
|
child: Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 3, vertical: 8),
|
|
child: Container(
|
|
width: Get.width * .21,
|
|
height: Get.width * .29,
|
|
margin: const EdgeInsets.all(4),
|
|
decoration: BoxDecoration(
|
|
gradient: LinearGradient(
|
|
colors: [
|
|
kolor.withOpacity(0.3),
|
|
kolor,
|
|
kolor.withOpacity(0.7),
|
|
kolor,
|
|
],
|
|
begin: Alignment.topLeft,
|
|
end: Alignment.bottomRight,
|
|
),
|
|
border: Border.all(color: AppColor.accentColor),
|
|
borderRadius: BorderRadius.circular(12),
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
children: [
|
|
Text(
|
|
'$countPoint ${'LE'.tr}',
|
|
style: AppStyle.subtitle,
|
|
),
|
|
Text(
|
|
'$pricePoint ${box.read(BoxName.countryCode) == 'Jordan' ? 'JOD'.tr : 'LE'.tr}',
|
|
style: AppStyle.title,
|
|
textAlign: TextAlign.center,
|
|
),
|
|
],
|
|
),
|
|
)),
|
|
),
|
|
);
|
|
}
|
|
}
|