bloc_dev_tools 1.0.2 copy "bloc_dev_tools: ^1.0.2" to clipboard
bloc_dev_tools: ^1.0.2 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.

example/lib/main.dart

// 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: '10.0.2.2',
  );

  await observer.connect();

  Bloc.observer = observer;
  runApp(const CounterApp());
}
4
likes
160
pub points
30%
popularity

Publisher

verified publisher525k.io

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

bloc, flutter, socketcluster_client

More

Packages that depend on bloc_dev_tools