Created
July 16, 2020 18:55
-
-
Save kauemurakami/06d1aca39cad574355e3d44d3a81875c to your computer and use it in GitHub Desktop.
Home dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:getx_pattern/app/controller/home/home_controller.dart'; | |
import 'package:getx_pattern/app/data/provider/api.dart'; | |
import 'package:getx_pattern/app/data/repository/posts_repository.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:get/get.dart'; | |
class HomeBinding implements Bindings { | |
@override | |
void dependencies() { | |
Get.lazyPut<HomeController>(() { | |
return HomeController( | |
repository: | |
MyRepository(apiClient: MyApiClient(httpClient: http.Client()))); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment