Update codebase

This commit is contained in:
Hamza-Ayed
2026-08-11 00:11:23 +03:00
parent 6726fcd917
commit 0ff7d04f9a
345 changed files with 3756 additions and 3369 deletions
@@ -1,7 +1,7 @@
// import 'package:camera/camera.dart';
// import 'package:flutter/material.dart';
// import 'package:get/get.dart';
// import 'package:siro_driver/views/widgets/elevated_btn.dart';
// import 'package:tripz_driver/views/widgets/elevated_btn.dart';
// import '../../../../constant/colors.dart';
// import '../../../../constant/style.dart';
@@ -5,24 +5,24 @@ import 'package:get/get.dart';
import '../../../constant/colors.dart';
import '../../../controller/functions/tts.dart';
import '../../../controller/home/captin/contact_us_controller.dart';
import '../../widgets/ui/siro_ui.dart';
import '../../widgets/ui/tripz_ui.dart';
class ContactUsPage extends StatelessWidget {
const ContactUsPage({super.key});
static const String _aboutText =
'Siro is the safest ride-sharing app that introduces many features for both captains and passengers. We offer the lowest commission rate of just 8%, ensuring you get the best value for your rides. Our app includes insurance for the best captains, regular maintenance of cars with top engineers, and on-road services to ensure a respectful and high-quality experience for all users.';
'Tripz is the safest ride-sharing app that introduces many features for both captains and passengers. We offer the lowest commission rate of just 8%, ensuring you get the best value for your rides. Our app includes insurance for the best captains, regular maintenance of cars with top engineers, and on-road services to ensure a respectful and high-quality experience for all users.';
@override
Widget build(BuildContext context) {
Get.put(ContactUsController());
return GetBuilder<ContactUsController>(builder: (controller) {
return SiroPage(
return TripzPage(
title: 'Contact Us'.tr,
padding: SiroUi.pageInsets,
padding: TripzUi.pageInsets,
body: ListView(
children: [
SiroCard(
TripzCard(
padding: const EdgeInsets.fromLTRB(16, 16, 16, 8),
child: Column(
children: [
@@ -52,11 +52,11 @@ class ContactUsPage extends StatelessWidget {
],
),
),
SiroCard(
TripzCard(
child: Row(
children: [
SiroIconBadge(Icons.schedule_rounded,
color: SiroUi.interactive(context)),
TripzIconBadge(Icons.schedule_rounded,
color: TripzUi.interactive(context)),
const SizedBox(width: 12),
Expanded(
child: Text(
@@ -68,18 +68,18 @@ class ContactUsPage extends StatelessWidget {
],
),
),
SiroSectionTitle('Contact Us'.tr),
SiroCard(
TripzSectionTitle('Contact Us'.tr),
TripzCard(
padding: const EdgeInsets.symmetric(vertical: 18),
onTap: () => controller.showContactDialog(context),
child: const Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
SiroIconBadge(Icons.phone_rounded,
TripzIconBadge(Icons.phone_rounded,
color: AppColor.primaryColor, size: 24),
SiroIconBadge(FontAwesome.whatsapp,
TripzIconBadge(FontAwesome.whatsapp,
color: AppColor.greenColor, size: 24),
SiroIconBadge(Icons.email_rounded,
TripzIconBadge(Icons.email_rounded,
color: AppColor.redColor, size: 24),
],
),
@@ -226,7 +226,7 @@ class InviteScreen extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 8),
borderRadius: BorderRadius.circular(8),
onPressed: () {
final appName = 'Siro';
final appName = 'Tripz';
final isDriver = controller.selectedTab == 0;
final shareText = isDriver
? 'Join $appName as a driver! Use my referral code: ${rc.referralCode}\n${AppLink.driverDownloadLinks}\n\n💡 Note: If the link is not clickable, save this number or reply to activate links!'
@@ -1,9 +1,9 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:siro_driver/constant/colors.dart';
import 'package:siro_driver/controller/functions/log_out.dart';
import 'package:siro_driver/views/widgets/elevated_btn.dart';
import 'package:siro_driver/views/widgets/my_scafold.dart';
import 'package:tripz_driver/constant/colors.dart';
import 'package:tripz_driver/controller/functions/log_out.dart';
import 'package:tripz_driver/views/widgets/elevated_btn.dart';
import 'package:tripz_driver/views/widgets/my_scafold.dart';
class LogoutCaptain extends StatelessWidget {
const LogoutCaptain({super.key});
@@ -2,7 +2,7 @@ import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:siro_driver/controller/auth/captin/login_captin_controller.dart';
import 'package:tripz_driver/controller/auth/captin/login_captin_controller.dart';
// --- Placeholder Imports ---
// Assuming these files exist in your project structure.
@@ -318,7 +318,7 @@ class _PhoneNumberScreenState extends State<PhoneNumberScreen> {
@override
Widget build(BuildContext context) {
return AuthScreen(
title: 'welcome to siro'.tr,
title: 'welcome to tripz'.tr,
subtitle: 'login or register subtitle'.tr,
form: Form(
key: _formKey,