added android logo assets

This commit is contained in:
Prince
2026-06-14 20:34:59 +02:00
parent 5014b679f5
commit 8b78199992
36 changed files with 74 additions and 57 deletions

View File

@@ -20,6 +20,7 @@ class PayScreenModel {
PaymentProcessor? selectedPaymentProcessor;
String region = '';
bool isLoading = false;
bool isLoadingProducts = false;
String? errorMessage;
String? status;
}
@@ -146,7 +147,7 @@ class PayController extends ChangeNotifier {
Future<ApiResponse<List<BillProduct>>> getProducts(String providerId) async {
try {
model.isLoading = true;
model.isLoadingProducts = true;
notifyListeners();
List<dynamic> response = await http.get(
@@ -154,12 +155,12 @@ class PayController extends ChangeNotifier {
);
model.products = response.map((e) => BillProduct.fromJson(e)).toList();
model.isLoading = false;
model.isLoadingProducts = false;
notifyListeners();
return ApiResponse.success(model.products);
} catch (e) {
logger.e(e);
model.isLoading = false;
model.isLoadingProducts = false;
notifyListeners();
return ApiResponse.failure(
"Problem fetching products, are you connected to the internet?",