okito 1.1.6 copy "okito: ^1.1.6" to clipboard
okito: ^1.1.6 copied to clipboard

outdated

Your best flutter coding friend. All in one flutter helper with state, route, navigation, localization, dependency injection and local storage management!

example/example.md

Usage #

Create Controller

class CounterController extends OkitoController {
  int count = 0;

  void increment() => setState(() => count++);

  void decrement() {
    count--;
    update();
  }
}

CounterController counterController = CounterController();

Watch Controller

// That simple!
OkitoBuilder(
      controller: counterController,
      builder: () => Text('${counterController.count}'),
    );

Update Controller

    main(){
        // You can change state from anywhere without context!
        counterController.increment();
    }

    // In Flutter
    ElevatedButton(
                  onPressed: counterController.increment,
                  child: const Text('Increment'),
                )
    // Or
     ElevatedButton(
                  onPressed: () => counterController
                      .setState(() => counterController.count--),
                  child: const Text('Decrement'),
                )

Watch Multiple Controllers?, Of course!

OkitoBuilder(
      controller: counterController,
      otherControllers: [ageController /* ,  ...otherControllers  */],
      builder: () => Text('${counterController.count}'),
    );
46
likes
0
pub points
43%
popularity

Publisher

unverified uploader

Your best flutter coding friend. All in one flutter helper with state, route, navigation, localization, dependency injection and local storage management!

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, path_provider

More

Packages that depend on okito