message when no businesses are added
This commit is contained in:
@@ -81,9 +81,35 @@ class _MihFavouriteBusinessesState extends State<MihFavouriteBusinesses> {
|
|||||||
myLocation: widget.myLocation,
|
myLocation: widget.myLocation,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return Center(
|
return Column(
|
||||||
child: Text("No bookmarked businesses found"),
|
children: [
|
||||||
|
const SizedBox(height: 50),
|
||||||
|
Icon(
|
||||||
|
Icons.business_center_rounded,
|
||||||
|
size: 150,
|
||||||
|
color: MzansiInnovationHub.of(context)!
|
||||||
|
.theme
|
||||||
|
.secondaryColor(),
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
|
child: SizedBox(
|
||||||
|
width: 500,
|
||||||
|
child: Text(
|
||||||
|
"No favourites yet, use Mzansi Search to find and bookmark businesses you like",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 18,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
|
// return Center(
|
||||||
|
// child: Text("No bookmarked businesses found"),
|
||||||
|
// );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return Center(
|
return Center(
|
||||||
|
|||||||
Reference in New Issue
Block a user