schwifty 0.0.3
schwifty: ^0.0.3 copied to clipboard
This is a simple stream-based state machine for Flutter. It was designed to be a simplified version of the BLoC pattern that does not rely on context and requires less boilerplate.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add schwiftyWith Flutter:
$ flutter pub add schwiftyThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
schwifty: ^0.0.3Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:schwifty/schwifty.dart';