onInit method
override
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
Implementation
@override
void onInit() {
super.onInit();
scrollController.addListener(_onScroll);
Future.delayed(
const Duration(seconds: 5),
() {
if (Preferences.getFlightTypeShowAgain()) {
FlightsTypesDialog.show();
}
},
);
// final auth = Get.find<AuthenticationController>();
// if (auth.isProfileLoaded.value && auth.currentSubscription!=null) {
// loadMyFlights();
// } else {
// ever(
// auth.isProfileLoaded ,
// (callback) {
// if(auth.currentSubscription!=null){
// loadMyFlights();
// }
// },
// );
// }
}