notification_center 1.0.2 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.
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()),
],
),
);
}
}