QOL: Switch from Network Image to CachedNetworkImage

This commit is contained in:
2025-12-03 21:42:42 +02:00
parent e7729a8ce8
commit fe5b61f6bc
10 changed files with 18 additions and 24 deletions

View File

@@ -42,9 +42,7 @@ class _MihFavouriteBusinessesState extends State<MihFavouriteBusinesses> {
directoryProvider,
);
List<Business> favBus = [];
// Map<String, ImageProvider<Object>?> favBusImages = {};
Map<String, Future<String>> favBusImages = {};
// String businessLogoUrl = "";
Future<String> businessLogoUrl;
for (var bus in directoryProvider.bookmarkedBusinesses) {
await MihBusinessDetailsServices()
@@ -53,7 +51,6 @@ class _MihFavouriteBusinessesState extends State<MihFavouriteBusinesses> {
favBus.add(business!);
businessLogoUrl = MihFileApi.getMinioFileUrl(business.logo_path);
favBusImages[business.business_id] = businessLogoUrl;
// businessLogoUrl != "" ? NetworkImage(businessLogoUrl) : null;
});
}
directoryProvider.setFavouriteBusinesses(