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

outdated

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
0
pub points
19%
popularity

Publisher

unverified uploader

Central Station for Command and Event Handling

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

event_bus, flutter

More

Packages that depend on centralstation