generated from josiadmin/flutter-template-getx-provider
Initial commit
This commit is contained in:
16
lib/helpers/sample_bindings.dart
Normal file
16
lib/helpers/sample_bindings.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../controllers/home_controller.dart';
|
||||
import '../controllers/login_controller.dart';
|
||||
|
||||
|
||||
|
||||
class SampleBindings extends Bindings {
|
||||
@override
|
||||
void dependencies() {
|
||||
// Define your dependencies here no permanent Binding
|
||||
Get.lazyPut<LoginController>(() => LoginController());
|
||||
Get.lazyPut<HomeController>(() => HomeController());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user