pretty_bloc_observer

Creator: coderz1093

Last updated:

0 purchases

pretty_bloc_observer Image
pretty_bloc_observer Images
Add to Cart

Description:

pretty bloc observer

Pretty Bloc Observer #
Pretty Bloc Observer is a Flutter package that provides a Bloc observer for printing Bloc and Cubit state changes in a formatted and visually appealing way. It allows you to easily visualize the changes happening within your Blocs and Cubits during development.
Features #

Formats Bloc and Cubit state changes for easy readability.
Customizable output for different state change events.
Supports splitting long lines to improve readability.
Compatible with both Bloc and Cubit from the Flutter Bloc package.

How it looks like
On Change event

On Create event

On Close event

On Error event

Installation #
To use Pretty Bloc Observer in your Flutter project, add the following to your pubspec.yaml file:
dependencies:
pretty_bloc_observer: <latest_version>
copied to clipboard
Then run flutter pub get to install the package.
Usage #
To use Pretty Bloc Observer in your Flutter project, simply import it and add it to your Bloc/Cubit:
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:pretty_bloc_observer/pretty_bloc_observer.dart';

void main() {
Bloc.observer = PrettyBlocObserver();
runApp(MyApp());
}
copied to clipboard
Example #
// Import Pretty Bloc Observer
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:pretty_bloc_observer/pretty_bloc_observer.dart';

void main() {
// Set Pretty Bloc Observer as the Bloc observer
Bloc.observer = PrettyBlocObserver();

runApp(MyApp());
}
copied to clipboard
License #
This project is licensed under the MIT License.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.