Make website action visibility dynamic
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user