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:flutter/material.dart';
import 'package:get/get.dart';
import '../../../controller/home/journal/schedule_controller.dart';
import '../../widgets/ui/siro_ui.dart';
import '../../widgets/ui/tripz_ui.dart';
class SchedulePage extends StatelessWidget {
SchedulePage({super.key});
@@ -9,15 +9,15 @@ class SchedulePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SiroPage(
return TripzPage(
title: 'My Schedule'.tr,
padding: SiroUi.pageInsets,
padding: TripzUi.pageInsets,
body: GetBuilder<ScheduleController>(builder: (sc) {
return SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SiroHeroHeader(
TripzHeroHeader(
label: 'Weekly Plan'.tr,
value: '${sc.totalWeeklyHours.toStringAsFixed(1)}h',
caption: '${sc.activeDays} ${'Days'.tr}',
@@ -32,7 +32,7 @@ class SchedulePage extends StatelessWidget {
color: Colors.white, size: 26),
),
),
SiroSectionTitle('Work Days'.tr),
TripzSectionTitle('Work Days'.tr),
...sc.schedule.map((slot) => _buildDayCard(context, slot, sc)),
const SizedBox(height: 16),
],
@@ -45,10 +45,10 @@ class SchedulePage extends StatelessWidget {
Widget _buildDayCard(
BuildContext context, WorkSlot slot, ScheduleController sc) {
final isAr = Get.locale?.languageCode == 'ar';
final accent = SiroUi.interactive(context);
final off = SiroUi.subtle(context);
final accent = TripzUi.interactive(context);
final off = TripzUi.subtle(context);
return SiroCard(
return TripzCard(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
margin: const EdgeInsets.only(bottom: 10),
accent: slot.isActive ? accent : null,
@@ -135,7 +135,7 @@ class SchedulePage extends StatelessWidget {
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 5),
decoration: BoxDecoration(
color: SiroUi.interactive(context).withValues(alpha: 0.10),
color: TripzUi.interactive(context).withValues(alpha: 0.10),
borderRadius: BorderRadius.circular(8),
),
child: Text(
@@ -143,7 +143,7 @@ class SchedulePage extends StatelessWidget {
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w700,
color: SiroUi.interactive(context),
color: TripzUi.interactive(context),
),
),
),