diff --git a/lib/widgets/pizza_event_widget.dart b/lib/widgets/pizza_event_widget.dart index 50aaca0..09827b7 100644 --- a/lib/widgets/pizza_event_widget.dart +++ b/lib/widgets/pizza_event_widget.dart @@ -9,62 +9,53 @@ class PizzaEventWidget extends StatelessWidget { @override Widget build(BuildContext context){ - return InkWell( - onTap: () { - Navigator.pushNamed( - context, - "/event/view", - arguments: pizzaEvent - ); - }, - child: Container( - height: 120, - color: Colors.blueAccent, - child: Container( - padding: const EdgeInsets.all(8), - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text(pizzaEvent.name), - Text(getTimeRemainingString(pizzaEvent.dateTime)) - ], - ), - Container( - padding: const EdgeInsets.all(10), - height: 72, - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: IgnorePointer( - child: Slider( - max: pizzaEvent.recipe.recipeSteps.length.toDouble(), - divisions: pizzaEvent.recipe.recipeSteps.length, - value: pizzaEvent.recipe.getStepsCompleted().toDouble(), - onChanged: (d) {}, - activeColor: Colors.green, - inactiveColor: Colors.white, - ) - ) - ), - ] - ), - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text(getDateFormat().format(pizzaEvent.dateTime)), - Text(pizzaEvent.recipe.name) - ], + return Container( + height: 120, + color: Colors.blueAccent, + child: Container( + padding: const EdgeInsets.all(8), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text(pizzaEvent.name), + Text(getTimeRemainingString(pizzaEvent.dateTime)) + ], + ), + Container( + padding: const EdgeInsets.all(10), + height: 72, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Expanded( + child: IgnorePointer( + child: Slider( + max: pizzaEvent.recipe.recipeSteps.length.toDouble(), + divisions: pizzaEvent.recipe.recipeSteps.length, + value: pizzaEvent.recipe.getStepsCompleted().toDouble(), + onChanged: (d) {}, + activeColor: Colors.green, + inactiveColor: Colors.white, + ) + ) + ), + ] ), + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text(getDateFormat().format(pizzaEvent.dateTime)), + Text(pizzaEvent.recipe.name) + ], + ), - ] - ) - ) - ), + ] + ) + ) ); } } \ No newline at end of file