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!);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user