Changing theme using GetX

Issue I want to change the theme to redTheme only when I’m on a specific route. For that purpose, I’ve used routingCallback like class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return GetMaterialApp( title: ‘App’, theme: defaultTheme(context), initialRoute:

Continue reading

Flutter Getx – "Xxx" not found. You need to call "Get.put(Xxx())" – But i have called Get.put(Xxx())

Issue I have this global bindings class to initialise some services and I need it to be initialised straight away: import ‘package:get/get.dart’; import ‘package:vepo/data/data_provider/local_data_provider.dart’; import ‘package:vepo/data/data_source/local_data_source.dart’; import ‘services/authentication_service.dart’; class GlobalBindings extends Bindings { final LocalDataProvider _localDataProvider = LocalDataProvider(); @override void

Continue reading