fix: fix example after rebasing

This commit is contained in:
Malo Léon 2023-08-17 19:49:29 +02:00
parent bbfbf40126
commit d32bf9a38f

View File

@ -71,12 +71,7 @@ class _MyHomePageState extends State<MyHomePage> {
// the App.build method, and use it to set our appbar title. // the App.build method, and use it to set our appbar title.
title: Text(widget.title), title: Text(widget.title),
), ),
<<<<<<< HEAD
<<<<<<< HEAD
body: Center(
=======
body: const Center( body: const Center(
>>>>>>> 3dbc809 (feat: implement notification abstraction package)
// Center is a layout widget. It takes a single child and positions it // Center is a layout widget. It takes a single child and positions it
// in the middle of the parent. // in the middle of the parent.
child: Column( child: Column(
@ -96,70 +91,13 @@ class _MyHomePageState extends State<MyHomePage> {
// horizontal). // horizontal).
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
<<<<<<< HEAD Text(
const Text(
'You have pushed the button this many times:', '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( Text(
'Notif', 'Notif',
), ),
], ],
>>>>>>> 3dbc809 (feat: implement notification abstraction package)
), ),
), ),
); );