Skip to content

Commit

Permalink
Handling link group not valid
Browse files Browse the repository at this point in the history
  • Loading branch information
kaenova committed Jun 15, 2022
1 parent 6a1fa74 commit c9af092
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mobile/lib/screen/home/components/tikum/mytikum_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
3 changes: 2 additions & 1 deletion mobile/lib/screen/home/components/tikum/tikum_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit c9af092

Please sign in to comment.