first commit
This commit is contained in:
7
lib/Screens/Currency/Provider/currency_provider.dart
Normal file
7
lib/Screens/Currency/Provider/currency_provider.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import '../Model/currency_model.dart';
|
||||
import '../Repo/currency_repo.dart';
|
||||
|
||||
CurrencyRepo repo = CurrencyRepo();
|
||||
final currencyProvider = FutureProvider.autoDispose<List<CurrencyModel>>((ref) => repo.fetchAllCurrency());
|
||||
Reference in New Issue
Block a user