fix: fix example after rebasing
This commit is contained in:
parent
bbfbf40126
commit
d32bf9a38f
@ -71,12 +71,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
// the App.build method, and use it to set our appbar title.
|
||||
title: Text(widget.title),
|
||||
),
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
body: Center(
|
||||
=======
|
||||
body: const Center(
|
||||
>>>>>>> 3dbc809 (feat: implement notification abstraction package)
|
||||
// Center is a layout widget. It takes a single child and positions it
|
||||
// in the middle of the parent.
|
||||
child: Column(
|
||||
@ -96,70 +91,13 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
// horizontal).
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
<<<<<<< HEAD
|
||||
const Text(
|
||||
Text(
|
||||
'You have pushed the button this many times:',
|
||||
),
|
||||
Text(
|
||||
'$_counter',
|
||||
style: Theme.of(context).textTheme.headlineMedium,
|
||||
),
|
||||
],
|
||||
=======
|
||||
body: BlocProvider<NotificationCubit>(
|
||||
lazy: false,
|
||||
create: (context) => NotificationCubit(
|
||||
register: Register(notificationRepository: notificationRepository),
|
||||
getInitialMessage: GetInitialMessage(
|
||||
notificationRepository: notificationRepository),
|
||||
listenNotification: ListenNotification(
|
||||
notificationRepository: notificationRepository),
|
||||
subscribe:
|
||||
Subscribe(notificationRepository: notificationRepository),
|
||||
unsubscribe:
|
||||
Unsubscribe(notificationRepository: notificationRepository),
|
||||
handleNotification: _handlerNotif)
|
||||
..register()
|
||||
..listenNotification(),
|
||||
child: Center(
|
||||
// Center is a layout widget. It takes a single child and positions it
|
||||
// in the middle of the parent.
|
||||
child: Column(
|
||||
// Column is also a layout widget. It takes a list of children and
|
||||
// arranges them vertically. By default, it sizes itself to fit its
|
||||
// children horizontally, and tries to be as tall as its parent.
|
||||
//
|
||||
// Invoke "debug painting" (press "p" in the console, choose the
|
||||
// "Toggle Debug Paint" action from the Flutter Inspector in Android
|
||||
// Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
|
||||
// to see the wireframe for each widget.
|
||||
//
|
||||
// Column has various properties to control how it sizes itself and
|
||||
// how it positions its children. Here we use mainAxisAlignment to
|
||||
// center the children vertically; the main axis here is the vertical
|
||||
// axis because Columns are vertical (the cross axis would be
|
||||
// horizontal).
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
const Text(
|
||||
'content of notification :',
|
||||
),
|
||||
Text(
|
||||
_content,
|
||||
style: Theme.of(context).textTheme.headline4,
|
||||
),
|
||||
],
|
||||
),
|
||||
>>>>>>> 5da1cd0 (feat(notification_bloc): add base architecture and start impementing firebase messaging data source. Add example too (#33))
|
||||
=======
|
||||
Text(
|
||||
'content of notification :',
|
||||
),
|
||||
Text(
|
||||
'Notif',
|
||||
),
|
||||
],
|
||||
>>>>>>> 3dbc809 (feat: implement notification abstraction package)
|
||||
),
|
||||
),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user