atom_event_bus 0.0.3 copy "atom_event_bus: ^0.0.3" to clipboard
atom_event_bus: ^0.0.3 copied to clipboard

outdated

An Event Bus to decouple your code dependencies.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'emitter.dart';
import 'subscriber.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'ATOM EVENT BUS',
      theme: ThemeData(
        primarySwatch: Colors.green,
      ),
      home: const MyHomePage(title: 'ATOM EVENT BUS'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
        centerTitle: true,
      ),
      body: const SignedInStatus(),
      floatingActionButton: const ToggleSignInStatus(),
    );
  }
}
3
likes
0
pub points
40%
popularity

Publisher

verified publisherstackorient.com

An Event Bus to decouple your code dependencies.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on atom_event_bus