refactoring and app title

This commit is contained in:
MhdZiadHirati 2023-10-19 17:32:20 +03:00
parent e00f0354dd
commit 2566c39f44
2 changed files with 3 additions and 10 deletions

View File

@ -192,15 +192,10 @@ class HomeController extends GetxController {
} }
}); });
try {
await storage.setAppointments(user.value!.appointments!); await storage.setAppointments(user.value!.appointments!);
print(user.value!.appointments);
} catch (error) {
print(error.toString());
}
currentCardAppointment = appointment.obs; currentCardAppointment = appointment.obs;
currentCardAppointment.refresh(); currentCardAppointment.refresh();
print('currentCardAppointment:${currentCardAppointment.value}');
user.refresh(); user.refresh();
} }
@ -208,10 +203,8 @@ class HomeController extends GetxController {
if (user.value!.appointments == null || user.value!.appointments!.isEmpty) { if (user.value!.appointments == null || user.value!.appointments!.isEmpty) {
return null; return null;
} }
print('user appointments: ${user.value!.appointments!}');
Appointment? appointment = user.value!.appointments! Appointment? appointment = user.value!.appointments!
.firstWhereOrNull((element) => (element.cardId == cardId)); .firstWhereOrNull((element) => (element.cardId == cardId));
print('current appointment:$appointment');
return appointment; return appointment;
} }
} }

View File

@ -67,7 +67,7 @@ class MyApp extends StatelessWidget {
}, },
child: GetMaterialApp( child: GetMaterialApp(
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
title: 'Yellow Pages', title: 'T3afi',
theme: ThemeData( theme: ThemeData(
primarySwatch: Utils.createMaterialColor(AppColors.primeColor), primarySwatch: Utils.createMaterialColor(AppColors.primeColor),
), ),