Make website action visibility dynamic
This commit is contained in:
parent
4fa52b8ca7
commit
ec251bba86
1 changed files with 12 additions and 9 deletions
|
|
@ -379,7 +379,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: widget.website != null,
|
visible: widget.website != null && widget.website! != "",
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
child: Divider(
|
child: Divider(
|
||||||
|
|
@ -387,7 +387,9 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
_buildContactInfo(
|
Visibility(
|
||||||
|
visible: widget.website != null && widget.website! != "",
|
||||||
|
child: _buildContactInfo(
|
||||||
"Website",
|
"Website",
|
||||||
"Find out more about us.",
|
"Find out more about us.",
|
||||||
Icons.vpn_lock,
|
Icons.vpn_lock,
|
||||||
|
|
@ -396,6 +398,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||||
_launchWebsite(widget.website!);
|
_launchWebsite(widget.website!);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
),
|
||||||
// Padding(
|
// Padding(
|
||||||
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
// child: Divider(
|
// child: Divider(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue