added android logo assets
This commit is contained in:
@@ -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?",
|
||||
|
||||
Reference in New Issue
Block a user