removed the inkwell from the pizza event widget
This commit is contained in:
parent
c1d1595d8c
commit
ac3f008a8c
1 changed files with 45 additions and 54 deletions
|
@ -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: <Widget>[
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
Text(pizzaEvent.name),
|
||||
Text(getTimeRemainingString(pizzaEvent.dateTime))
|
||||
],
|
||||
),
|
||||
Container(
|
||||
padding: const EdgeInsets.all(10),
|
||||
height: 72,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
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: <Widget>[
|
||||
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: <Widget>[
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
Text(pizzaEvent.name),
|
||||
Text(getTimeRemainingString(pizzaEvent.dateTime))
|
||||
],
|
||||
),
|
||||
Container(
|
||||
padding: const EdgeInsets.all(10),
|
||||
height: 72,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
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: <Widget>[
|
||||
Text(getDateFormat().format(pizzaEvent.dateTime)),
|
||||
Text(pizzaEvent.recipe.name)
|
||||
],
|
||||
),
|
||||
|
||||
]
|
||||
)
|
||||
)
|
||||
),
|
||||
]
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue