add loading text when detting data
This commit is contained in:
@@ -448,21 +448,22 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||||||
Visibility(
|
Visibility(
|
||||||
visible: widget.business.website.isNotEmpty &&
|
visible: widget.business.website.isNotEmpty &&
|
||||||
widget.business.website != "",
|
widget.business.website != "",
|
||||||
child: Divider(
|
child: Column(
|
||||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
children: [
|
||||||
),
|
Divider(
|
||||||
),
|
color:
|
||||||
Visibility(
|
MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
visible: widget.business.website.isNotEmpty &&
|
),
|
||||||
widget.business.website != "",
|
_buildContactInfo(
|
||||||
child: _buildContactInfo(
|
"Website",
|
||||||
"Website",
|
"Find out more about us.",
|
||||||
"Find out more about us.",
|
Icons.vpn_lock,
|
||||||
Icons.vpn_lock,
|
MihColors.getRedColor(context),
|
||||||
MihColors.getRedColor(context),
|
() {
|
||||||
() {
|
_launchWebsite(widget.business.website);
|
||||||
_launchWebsite(widget.business.website);
|
},
|
||||||
},
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
FutureBuilder(
|
FutureBuilder(
|
||||||
@@ -482,8 +483,8 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
child: _buildContactInfo(
|
child: _buildContactInfo(
|
||||||
"Rate Us",
|
"Loading Rating",
|
||||||
"Let us know how we are doing.",
|
"Loading your rating.",
|
||||||
Icons.star_rate_rounded,
|
Icons.star_rate_rounded,
|
||||||
MihColors.getYellowColor(context),
|
MihColors.getYellowColor(context),
|
||||||
() {
|
() {
|
||||||
@@ -544,8 +545,8 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
child: _buildContactInfo(
|
child: _buildContactInfo(
|
||||||
"Bookmark Us",
|
"Loading Bookmark",
|
||||||
"Save us for later.",
|
"Loading your bookmark.",
|
||||||
Icons.bookmark_add_rounded,
|
Icons.bookmark_add_rounded,
|
||||||
MihColors.getBluishPurpleColor(context),
|
MihColors.getBluishPurpleColor(context),
|
||||||
() {
|
() {
|
||||||
|
|||||||
Reference in New Issue
Block a user