flutter_bloc_devtools
Remote DevTools for flutter_bloc. This package connects all Bloc to the Remote Devtools Server, allowing the developer to inspect changes to the Blocs during runtime.
Remote DevTools for flutter_bloc. This package connects all Bloc (not working with Cubit) to the Remote Devtools Server, allowing the developer to inspect changes to the Blocs during runtime.
English project snapshot. Visit GitHub for the latest content.
Remote Devtools support for Blocs of flutter_bloc.
N.B. Cubit is not supported
Add the library to pubspec.yaml:
dependencies:
flutter_bloc_devtools: ^0.1.0
Add RemoteDevToolsObserver to your Bloc.observer:
void main() async {
final observer = RemoteDevToolsObserver('192.168.1.7:8000');
await observer.connect();
Bloc.observer = observer;
runApp(const CounterApp());
}
Events and States have to implements Mappable:
class CounterState extends Equatable implements Mappable {
final int counter;
const CounterState({
this.counter,
});
@override
List<Object> get props => [
counter,
];
@override
Map<String, dynamic> toMap() => {
'counter': counter,
};
}
Use the Javascript Remote Devtools package. Start the remotedev server on your machine
npm install -g remotedev-server
remotedev --port 8000
Run your application. It will connect to the remotedev server. You can now debug your flutter_bloc application by opening up http://localhost:8000 in a web browser.
Dependency list 3 items
^6.1.0^0.2.0^1.9.0Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗