bug fixes done
This commit is contained in:
@@ -31,7 +31,7 @@ class GetItineraryBloc extends Bloc<GetItineraryEvent, GetItineraryState> {
|
||||
}
|
||||
|
||||
final response = await _repository.fetchMyItineraries();
|
||||
|
||||
print("🔍 isUnlimitedPass = ${response.isUnlimitedPass}");
|
||||
// Check if user has unlimited pass
|
||||
if (!response.isUnlimitedPass) {
|
||||
emit(GetItineraryRequiresPass(itineraries: response.itineraries));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:citycards_customer/common_packages/app_bar.dart';
|
||||
import 'package:citycards_customer/common_packages/app_bar.dart';
|
||||
import 'package:citycards_customer/common_packages/custom_filled_button.dart';
|
||||
import 'package:citycards_customer/common_packages/custom_text.dart';
|
||||
import 'package:citycards_customer/core/route_constants.dart';
|
||||
|
||||
@@ -75,11 +75,23 @@ class ItineraryVisitingPlaceCard extends StatelessWidget {
|
||||
color: Colors.grey[200],
|
||||
child: const Center(child: CircularProgressIndicator()),
|
||||
),
|
||||
errorWidget: (context, url, error) => Container(
|
||||
errorWidget: (context, url, error) => CachedNetworkImage(
|
||||
imageUrl: image, // ← fallback: try image URL directly
|
||||
width: 350.w,
|
||||
height: 200.h,
|
||||
color: Colors.grey[200],
|
||||
child: const Icon(Icons.error),
|
||||
fit: BoxFit.cover,
|
||||
placeholder: (context, url) => Container(
|
||||
width: 350.w,
|
||||
height: 200.h,
|
||||
color: Colors.grey[200],
|
||||
child: const Center(child: CircularProgressIndicator()),
|
||||
),
|
||||
errorWidget: (context, url, error) => Container(
|
||||
width: 350.w,
|
||||
height: 200.h,
|
||||
color: Colors.grey[200],
|
||||
child: const Icon(Icons.error), // both failed
|
||||
),
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
|
||||
Reference in New Issue
Block a user