From 375a6feb07a8c1406aedbac6a2c50804856e3c71 Mon Sep 17 00:00:00 2001 From: broodjeaap89 Date: Tue, 17 Aug 2021 21:47:00 +0200 Subject: [PATCH] added basic layout for the notification page --- lib/pages/PizzaEventNotificationPage.dart | 56 ++++++++++++++++++++++- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/lib/pages/PizzaEventNotificationPage.dart b/lib/pages/PizzaEventNotificationPage.dart index 0b26504..2ff3f51 100644 --- a/lib/pages/PizzaEventNotificationPage.dart +++ b/lib/pages/PizzaEventNotificationPage.dart @@ -45,8 +45,60 @@ class PizzaEventNotificationState extends State { padding: EdgeInsets.fromLTRB(40, 10, 40, 10), child: Column( children: [ - Text(pizzaEvent.name), - Text(recipeStep.name) + Expanded( + flex: 10, + child: Center( + child: Text(pizzaEvent.name), + ), + ), + Expanded( + flex: 10, + child: Center( + child: Text(recipeStep.name) + ), + ), + Divider(), + Expanded( + flex: 10, + child: Container( + color: Colors.blue, + width: double.infinity, + child: TextButton( + child: Text("Ignore", style: TextStyle(color: Colors.white)), + onPressed: () async { + + }, + ) + ) + ), + Divider(), + Expanded( + flex: 30, + child: Container( + color: Colors.blue, + width: double.infinity, + child: TextButton( + child: Text("Snooze 15 minutes", style: TextStyle(color: Colors.white)), + onPressed: () async { + + }, + ) + ) + ), + Divider(), + Expanded( + flex: 40, + child: Container( + color: Colors.blue, + width: double.infinity, + child: TextButton( + child: Text("Start!", style: TextStyle(color: Colors.white)), + onPressed: () async { + + }, + ) + ) + ), ] ) )