Compare commits
4 Commits
d31ca9f81f
...
9002483036
Author | SHA1 | Date | |
---|---|---|---|
9002483036 | |||
0271c3d7a7 | |||
4fd1272ea4 | |||
6bedd04a57 |
@ -19,8 +19,7 @@ class StepBetweenLandmarks extends StatefulWidget {
|
|||||||
class _StepBetweenLandmarksState extends State<StepBetweenLandmarks> {
|
class _StepBetweenLandmarksState extends State<StepBetweenLandmarks> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
int timeRounded = 5 * ((widget.current.tripTime?.inMinutes ?? 0) ~/ 5);
|
int time = widget.current.tripTime?.inMinutes ?? 0;
|
||||||
// ~/ is integer division (rounding)
|
|
||||||
return Container(
|
return Container(
|
||||||
margin: EdgeInsets.all(10),
|
margin: EdgeInsets.all(10),
|
||||||
padding: EdgeInsets.all(10),
|
padding: EdgeInsets.all(10),
|
||||||
@ -34,7 +33,7 @@ class _StepBetweenLandmarksState extends State<StepBetweenLandmarks> {
|
|||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
Icon(Icons.directions_walk),
|
Icon(Icons.directions_walk),
|
||||||
Text("~$timeRounded min", style: TextStyle(fontSize: 10)),
|
Text("$time min", style: TextStyle(fontSize: 10)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Spacer(),
|
Spacer(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user