From dc07ce8fe4418551540eacaebf5c6d3125fd7be8 Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Sun, 13 Sep 2020 13:12:44 +0300 Subject: [PATCH] fix issue --- .../delivery/distance_in_kilometers.dart | 55 ++++++++++--------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/lib/widgets/delivery/distance_in_kilometers.dart b/lib/widgets/delivery/distance_in_kilometers.dart index 70e0ecd..678a34d 100644 --- a/lib/widgets/delivery/distance_in_kilometers.dart +++ b/lib/widgets/delivery/distance_in_kilometers.dart @@ -12,32 +12,35 @@ class DistanceInKilometers extends StatelessWidget { @override Widget build(BuildContext context) { return CircleContainer( - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - 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: [ + 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), + ), + ], + ), ), ); }