bloc_small 1.0.0 bloc_small: ^1.0.0 copied to clipboard
An easy-to-use Flutter package offering a streamlined BLoC pattern implementation for intuitive and efficient state management in Flutter apps.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add bloc_small
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
bloc_small: ^1.0.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:bloc_small/base_state/base_page_state.dart';
import 'package:bloc_small/common/common_bloc.dart';
import 'package:bloc_small/common/common_event.dart';
import 'package:bloc_small/common/common_state.dart';
import 'package:bloc_small/constant/default_loading.dart';
import 'package:bloc_small/core/main_bloc.dart';
import 'package:bloc_small/core/main_bloc_event.dart';
import 'package:bloc_small/core/main_bloc_state.dart';
import 'package:bloc_small/reactive_subject.dart';