From 46f4110b99efd1f0bd63c5ed3d72df861d215855 Mon Sep 17 00:00:00 2001 From: "michael.wiryadinata" Date: Mon, 1 Jun 2020 22:01:12 +0700 Subject: [PATCH 1/2] [REFACTOR] Fix empty string --- lib/Pages/Program/detail_program.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Pages/Program/detail_program.dart b/lib/Pages/Program/detail_program.dart index df6d717..484ae60 100644 --- a/lib/Pages/Program/detail_program.dart +++ b/lib/Pages/Program/detail_program.dart @@ -22,7 +22,7 @@ class DetailProgram extends StatelessWidget { title: const Text('Program'), centerTitle: true, ), - floatingActionButton: program.link == null + floatingActionButton: program.link == null || program.link == '' ? null : _Tautan( link: program.link, @@ -64,7 +64,8 @@ class DetailProgram extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: [ - if (program.speaker != null) + if (program.speaker != null || + program.speaker != '') _DeskripsiRow( icon: Icons.perm_identity, label: program.speaker), @@ -83,7 +84,8 @@ class DetailProgram extends StatelessWidget { ': ' '${formatTime(program.endDateTime)}', ), - if (program.location != null) + if (program.location != null || + program.location != '') _DeskripsiRow( icon: Icons.room, label: program.location, -- GitLab From a9694a90d55d70c47ed375575930a34e95067759 Mon Sep 17 00:00:00 2001 From: "michael.wiryadinata" Date: Mon, 1 Jun 2020 22:01:52 +0700 Subject: [PATCH 2/2] [CHORES] Update version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 74c3bae..0635a14 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: Home Industry is a platform that sell various goods # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.11+1 +version: 1.0.13+1 environment: sdk: ">=2.6.0 <3.0.0" -- GitLab