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,14 +387,17 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
_buildContactInfo(
|
Visibility(
|
||||||
"Website",
|
visible: widget.website != null && widget.website! != "",
|
||||||
"Find out more about us.",
|
child: _buildContactInfo(
|
||||||
Icons.vpn_lock,
|
"Website",
|
||||||
const Color(0xffd67d8a),
|
"Find out more about us.",
|
||||||
() {
|
Icons.vpn_lock,
|
||||||
_launchWebsite(widget.website!);
|
const Color(0xffd67d8a),
|
||||||
},
|
() {
|
||||||
|
_launchWebsite(widget.website!);
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
// Padding(
|
// Padding(
|
||||||
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
|
|||||||
Reference in New Issue
Block a user