notification_center 1.0.2 copy "notification_center: ^1.0.2" to clipboard
notification_center: ^1.0.2 copied to clipboard

A simple notification center. A notification dispatch mechanism that enables the broadcast of information to registered observers.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:example/widget1.dart';
import 'package:example/widget2.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: 'Flutter Demo',
      theme: ThemeData(
        colorSchemeSeed: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Notification Center - Example'),
      ),
      body: const Column(
        children: [
          Expanded(child: Widget1()),
          Expanded(child: Widget2()),
        ],
      ),
    );
  }
}
11
likes
150
pub points
93%
popularity

Publisher

verified publisheraky.dev

A simple notification center. A notification dispatch mechanism that enables the broadcast of information to registered observers.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on notification_center