mvvm_bloc 2.2.0 mvvm_bloc: ^2.2.0 copied to clipboard
Flutter MVVM Architecture with BLoC Pattern
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add mvvm_bloc
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
mvvm_bloc: ^2.2.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mvvm_bloc/index.dart';
import 'package:mvvm_bloc/life_cycle_listener.dart';
import 'package:mvvm_bloc/periodic_lifecycle_event.dart';
import 'package:mvvm_bloc/subscribe_lifecycle_event.dart';
import 'package:mvvm_bloc/view.dart';
import 'package:mvvm_bloc/vm.dart';
import 'package:mvvm_bloc/vm_controller.dart';