From 8747b2af99641b685f0c88feb8c6bc42e43c2628 Mon Sep 17 00:00:00 2001 From: m-i-n-a-r Date: Sun, 21 Oct 2018 11:58:44 +0200 Subject: [PATCH] Add more details in rocket list Co-authored-by: Simone Sestito --- assets/img/ic_rocket_launch.png | Bin 0 -> 13043 bytes lib/view/RocketView.dart | 33 ++++++++++++++++++++++++++++---- 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 assets/img/ic_rocket_launch.png diff --git a/assets/img/ic_rocket_launch.png b/assets/img/ic_rocket_launch.png new file mode 100644 index 0000000000000000000000000000000000000000..4a47b3239ba0cb8f3059eaa0a228a5cd4194ea47 GIT binary patch literal 13043 zcmdVAXHZl@w=TRVkTXcmFa!k&5(Olq3{goUk`a)cVaPM0GKd5L2@(|$2Zn6C96>X_;PKz$nBu?qzN(3*Pb>0P~gJ0LV5wwTBfF#1YOb1K106xlCeLMqv`#f0O6^&=}g+r z05(rox*rfyg#&s5Yy$`(6GVyJa3_i26nL-25C(vKj|Xy$hZWAWJpRlR@n?%PFFgO= zw_ewU^DMIm%@2`+oP1F>!)1iYAUy!^9DI3qs;ZT~y!7MylE<>|=HISor#@Q&BAUX# z=T6@~gd+iFv!TsNr^UrFL|_lBF09jsa1)rc0dCJ7I4Dffl-SXJjygz=R6W)fD0+JJ zqXs`8EgjvunCsJaxrJm+vcmTOQgYlbGQgpEK-;Ikh=2z zd&{DyJ@?{IQqO*wSFE>}W`FS8HmT*Rh-pvc8;eK!!k-?`v;K;|@LMqZgeEhB0jRof z4w^MlHTL;}aT_prGNbKqIG`Q3ef}X2-6Me6Q}IIN9sp!^9;9hY!GM9BvIPKm`;*K5 zMHZ(?H#Gq0m*CFT=}^(XJ5vQR7QEws3v$9;DD}1JQJ@C1F69p_AMI1FY#nYZP;CO) zScl*#VR`bM`Sm+_Rfc5}t37TtkdxAxtLQz~+xs*~osZOPF2ZVf7T44XkwI$Cyi}x! zi=ko$woK?3{>(Lzu8+ZGaDuM)BL_p#Kj(wbTuiao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E)M%F)>1d4_NWgT| n0uc;95B_IeTSK9{j>z8@v*{Jbl>(vLfdJaTOut6g`Og0Wr_z*c literal 0 HcmV?d00001 diff --git a/lib/view/RocketView.dart b/lib/view/RocketView.dart index 17d97b6..ecb2d38 100644 --- a/lib/view/RocketView.dart +++ b/lib/view/RocketView.dart @@ -11,6 +11,9 @@ class RocketView extends StatelessWidget { @override Widget build(BuildContext context) { + final launchIconHeight = 28.0; + final launchTextSize = 17.0; + return Theme( data: Theme.of(context).copyWith( textTheme: TextTheme( @@ -22,11 +25,33 @@ class RocketView extends StatelessWidget { child: Padding( padding: EdgeInsets.all(16.0), child: Column( - crossAxisAlignment: CrossAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.center, children: [ - Text(launch.name, style: TextStyle(fontWeight: FontWeight.bold)), - Text(launch.launchCompany.toString()), - Text(launch.date), + Padding( + padding: EdgeInsets.only(bottom: 8.0), + child: Text( + launch.name, + style: Theme.of(context).textTheme.title.copyWith( + color: Colors.black, + ), + textAlign: TextAlign.center, + ), + ), + Row(children: [ + Icon(Icons.flag, color: Colors.black, size: launchIconHeight), + Text(launch.launchCompany.countryCode, + + style: TextStyle(color: Colors.black, fontSize: launchTextSize)), + ]), + Row(children: [ + Image.asset("assets/img/ic_rocket_launch.png", width: launchIconHeight), + Text(launch.launchCompany.name, + style: TextStyle(color: Colors.black, fontSize: launchTextSize)), + ]), + Row(children: [ + Icon(Icons.alarm, color: Colors.black, size: launchIconHeight,), + Text(launch.date, style: TextStyle(color: Colors.black, fontSize: launchTextSize)), + ]), ], ), ),