centralstation 1.0.0 copy "centralstation: ^1.0.0" to clipboard
centralstation: ^1.0.0 copied to clipboard

Central Station for Command and Event Handling

example/lib/main.dart

import 'package:flutter/material.dart';

import "package:centralstation/centralstation.dart";
import 'command.dart';
import 'ip.dart';

void main() {
  CentralStationRuntime runtime = CentralStationRuntime(
    commandHandlers: {
      GetIPCommand: getIp,
    },
    eventHandlers: [],
  );

  runApp(MaterialApp(
    home: CentralStation(
      runtime: runtime,
      child: IPWidget(),
    ),
  ));
}
2
likes
110
pub points
19%
popularity

Publisher

unverified uploader

Central Station for Command and Event Handling

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

event_bus, flutter

More

Packages that depend on centralstation