Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Flutter State management with GetX

Flutter State management with GetX

It is my presentation slide on English Night 13.



Kenichi Kambara

February 10, 2022

More Decks by Kenichi Kambara

Other Decks in Technology


  1. 2022.02.10 Kenichi Kambara (@korodroid) English Night #13 Flutter State management

    with GetX
  2. About me •Mobile App Development •[Of fi cial] Evangelist at

    NTT TechnoCross •[Private] iplatform.org •Traveling (Been to 40 countries) / Running Kenichi Kambara (@korodroid) 
  3. My app: Sekaiphone Android: Kotlin, iOS: Swift Android/iOS:Flutter

  4. My motivation Wanna change 
 only this part 

  5. State management  •StatefulWidget •InheritedWidget •Provider •Riverpod •Bloc •GetX •…

  6. State management  •StatefulWidget •InheritedWidget •Provider •Riverpod •Bloc •GetX •…

  7. e.g. State management with GetX  Simple API & Easy

    to Use // Before Text(‘Counter’), Text("$count"), // After class MainController extends GetxController { var count = 0.obs; increment() => count++; } [View]main_view.dart [Controller]main_contoroller.dart // After final MainController c = Get.put(MainController()); Text(‘Counter’), Obx(() => Text(“${c.count}”)),
  8. More features on GetX  Get.to(NextScreen()); Get.toNamed(‘/details'); Get.back(); e.g. Navigation

    Get.snackbar('Notice', ‘New coupons are available'); Get.defaultDialog( title: "Info", content: Text(“Do you want to register now?”), confirm: TextButton( child: Text("Ok"), onPressed: () => print(“Hoge"), )); e.g. Utility
  9. Please let me know if you have any requests 

    such as technical speeches, technical writings and so on. Facebook:http://fb.com/kanbara.kenichi Twitter:@korodroid LinkedIn:http://www.linkedin.com/in/korodroid Thank you so much