From 6a1fa74ee667eae6d8180d5164c08a26c3c04265 Mon Sep 17 00:00:00 2001 From: Kaenova Mahendra Auditama Date: Wed, 15 Jun 2022 09:32:20 +0700 Subject: [PATCH 1/2] My Tikum white background --- mobile/lib/screen/home/components/tikum/my_tikum.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/lib/screen/home/components/tikum/my_tikum.dart b/mobile/lib/screen/home/components/tikum/my_tikum.dart index 3d95bfb..92d184f 100644 --- a/mobile/lib/screen/home/components/tikum/my_tikum.dart +++ b/mobile/lib/screen/home/components/tikum/my_tikum.dart @@ -24,6 +24,7 @@ class _MyTikumState extends State { @override Widget build(BuildContext context) { return Scaffold( + backgroundColor: Colors.white, body: FutureBuilder( future: futureProfile, builder: (context, snapshot) { From c9af092cd240bdfc2c3d1432cb9c5890665b9bb1 Mon Sep 17 00:00:00 2001 From: Kaenova Mahendra Auditama Date: Wed, 15 Jun 2022 09:55:32 +0700 Subject: [PATCH 2/2] Handling link group not valid --- mobile/lib/screen/home/components/tikum/mytikum_card.dart | 3 ++- mobile/lib/screen/home/components/tikum/tikum_card.dart | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mobile/lib/screen/home/components/tikum/mytikum_card.dart b/mobile/lib/screen/home/components/tikum/mytikum_card.dart index 43aac67..9aef774 100644 --- a/mobile/lib/screen/home/components/tikum/mytikum_card.dart +++ b/mobile/lib/screen/home/components/tikum/mytikum_card.dart @@ -152,7 +152,8 @@ class MyTikumCard extends StatelessWidget { ) ], ), - if (tikum.linkGroup != null) + if (tikum.linkGroup != null && + Uri.tryParse(tikum.linkGroup!)!.isAbsolute) ElevatedButton( style: ButtonStyle( backgroundColor: MaterialStateProperty.all(Colors.black)), diff --git a/mobile/lib/screen/home/components/tikum/tikum_card.dart b/mobile/lib/screen/home/components/tikum/tikum_card.dart index 659236c..7ed728c 100644 --- a/mobile/lib/screen/home/components/tikum/tikum_card.dart +++ b/mobile/lib/screen/home/components/tikum/tikum_card.dart @@ -101,7 +101,8 @@ class TikumCard extends StatelessWidget { ) ], ), - if (tikum.linkGroup != null) + if (tikum.linkGroup != null && + Uri.tryParse(tikum.linkGroup!)!.isAbsolute) ElevatedButton( style: ButtonStyle( backgroundColor: MaterialStateProperty.all(Colors.black)),