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
|
@override
|
||||||
Widget build(BuildContext context){
|
Widget build(BuildContext context){
|
||||||
return InkWell(
|
return Container(
|
||||||
onTap: () {
|
height: 120,
|
||||||
Navigator.pushNamed(
|
color: Colors.blueAccent,
|
||||||
context,
|
child: Container(
|
||||||
"/event/view",
|
padding: const EdgeInsets.all(8),
|
||||||
arguments: pizzaEvent
|
child: Column(
|
||||||
);
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
},
|
children: <Widget>[
|
||||||
child: Container(
|
Row(
|
||||||
height: 120,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
color: Colors.blueAccent,
|
children: <Widget>[
|
||||||
child: Container(
|
Text(pizzaEvent.name),
|
||||||
padding: const EdgeInsets.all(8),
|
Text(getTimeRemainingString(pizzaEvent.dateTime))
|
||||||
child: Column(
|
],
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
),
|
||||||
children: <Widget>[
|
Container(
|
||||||
Row(
|
padding: const EdgeInsets.all(10),
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
height: 72,
|
||||||
children: <Widget>[
|
child: Row(
|
||||||
Text(pizzaEvent.name),
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
Text(getTimeRemainingString(pizzaEvent.dateTime))
|
children: <Widget>[
|
||||||
],
|
Expanded(
|
||||||
),
|
child: IgnorePointer(
|
||||||
Container(
|
child: Slider(
|
||||||
padding: const EdgeInsets.all(10),
|
max: pizzaEvent.recipe.recipeSteps.length.toDouble(),
|
||||||
height: 72,
|
divisions: pizzaEvent.recipe.recipeSteps.length,
|
||||||
child: Row(
|
value: pizzaEvent.recipe.getStepsCompleted().toDouble(),
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
onChanged: (d) {},
|
||||||
children: <Widget>[
|
activeColor: Colors.green,
|
||||||
Expanded(
|
inactiveColor: Colors.white,
|
||||||
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)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: <Widget>[
|
||||||
|
Text(getDateFormat().format(pizzaEvent.dateTime)),
|
||||||
|
Text(pizzaEvent.recipe.name)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue