refactoring and app title
This commit is contained in:
parent
e00f0354dd
commit
2566c39f44
|
|
@ -192,15 +192,10 @@ class HomeController extends GetxController {
|
|||
}
|
||||
});
|
||||
|
||||
try {
|
||||
await storage.setAppointments(user.value!.appointments!);
|
||||
print(user.value!.appointments);
|
||||
} catch (error) {
|
||||
print(error.toString());
|
||||
}
|
||||
await storage.setAppointments(user.value!.appointments!);
|
||||
|
||||
currentCardAppointment = appointment.obs;
|
||||
currentCardAppointment.refresh();
|
||||
print('currentCardAppointment:${currentCardAppointment.value}');
|
||||
user.refresh();
|
||||
}
|
||||
|
||||
|
|
@ -208,10 +203,8 @@ class HomeController extends GetxController {
|
|||
if (user.value!.appointments == null || user.value!.appointments!.isEmpty) {
|
||||
return null;
|
||||
}
|
||||
print('user appointments: ${user.value!.appointments!}');
|
||||
Appointment? appointment = user.value!.appointments!
|
||||
.firstWhereOrNull((element) => (element.cardId == cardId));
|
||||
print('current appointment:$appointment');
|
||||
return appointment;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ class MyApp extends StatelessWidget {
|
|||
},
|
||||
child: GetMaterialApp(
|
||||
debugShowCheckedModeBanner: false,
|
||||
title: 'Yellow Pages',
|
||||
title: 'T3afi',
|
||||
theme: ThemeData(
|
||||
primarySwatch: Utils.createMaterialColor(AppColors.primeColor),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user