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.

#mobile
#Flutter

Kenichi Kambara

February 10, 2022
Tweet

More Decks by Kenichi Kambara

Other Decks in Technology

Transcript

  1. About me •Mobile App Development •[Of fi cial] Evangelist at

    NTT TechnoCross •[Private] iplatform.org •Traveling (Been to 40 countries) / Running Kenichi Kambara (@korodroid) 
  2. 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}”)),
  3. 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
  4. 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