mirror of https://github.com/flutter/samples.git
21 lines
700 B
21 lines
700 B
import 'package:provider/single_child_widget.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
import '../data/repositories/continent/continent_repository.dart';
|
|
import '../data/repositories/continent/continent_repository_local.dart';
|
|
import '../data/repositories/destination/destination_repository.dart';
|
|
import '../data/repositories/destination/destination_repository_local.dart';
|
|
|
|
/// Configure dependencies as a list of Providers
|
|
List<SingleChildWidget> get providers {
|
|
// List of Providers
|
|
return [
|
|
Provider.value(
|
|
value: DestinationRepositoryLocal() as DestinationRepository,
|
|
),
|
|
Provider.value(
|
|
value: ContinentRepositoryLocal() as ContinentRepository,
|
|
),
|
|
];
|
|
}
|