|
|
|
|
@ -12,32 +12,35 @@ class DistanceInKilometers extends StatelessWidget {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return CircleContainer(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
distanceInKilometers.toString(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xff42B6AD),
|
|
|
|
|
fontWeight: FontWeight.w800,
|
|
|
|
|
fontStyle: FontStyle.normal),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'K.m',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xff42B6AD),
|
|
|
|
|
fontWeight: FontWeight.w800,
|
|
|
|
|
fontStyle: FontStyle.normal),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'away',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xff42B6AD),
|
|
|
|
|
fontWeight: FontWeight.w800,
|
|
|
|
|
fontStyle: FontStyle.normal),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
distanceInKilometers.toString(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xff42B6AD),
|
|
|
|
|
fontWeight: FontWeight.w800,
|
|
|
|
|
fontStyle: FontStyle.normal),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'K.m',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xff42B6AD),
|
|
|
|
|
fontWeight: FontWeight.w800,
|
|
|
|
|
fontStyle: FontStyle.normal),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'away',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xff42B6AD),
|
|
|
|
|
fontWeight: FontWeight.w800,
|
|
|
|
|
fontStyle: FontStyle.normal),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|