From d32bf9a38f1870fc092c245d2900143775ac91ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malo=20L=C3=A9on?= Date: Thu, 17 Aug 2023 19:49:29 +0200 Subject: [PATCH] fix: fix example after rebasing --- .../example/lib/main.dart | 64 +------------------ 1 file changed, 1 insertion(+), 63 deletions(-) diff --git a/packages/wyatt_notification_bloc/example/lib/main.dart b/packages/wyatt_notification_bloc/example/lib/main.dart index 982ff213..d2fce3dc 100644 --- a/packages/wyatt_notification_bloc/example/lib/main.dart +++ b/packages/wyatt_notification_bloc/example/lib/main.dart @@ -71,12 +71,7 @@ class _MyHomePageState extends State { // 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 { // horizontal). mainAxisAlignment: MainAxisAlignment.center, children: [ -<<<<<<< HEAD - const Text( + Text( 'You have pushed the button this many times:', ), - Text( - '$_counter', - style: Theme.of(context).textTheme.headlineMedium, - ), - ], -======= - body: BlocProvider( - 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: [ - 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) ), ), );