bloc_dev_tools 1.0.1 bloc_dev_tools: ^1.0.1 copied to clipboard
The Remote DevTools package for `flutter_bloc` connects all Blocs to the Remote DevTools server, allowing developers to inspect changes in Bloc states and events during runtime.
// ignore_for_file: depend_on_referenced_packages
import 'package:bloc/bloc.dart';
import 'package:flutter/material.dart';
import 'package:bloc_dev_tools/bloc_dev_tools.dart';
import 'app.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
final observer = RemoteDevToolsObserver(
portNumber: 8000,
ipAddress: 'localhost',
);
await observer.connect();
Bloc.observer = observer;
runApp(const CounterApp());
}