void main() {
runApp(GetMaterialApp(
initialRoute: '/home',
getPages: [
Get.to(Second(), binding: SampleBind());
],
));
}
class SampleBind extends Bindings {
@override
void dependencies() {
Get.lazyPut<Controller>(() => Controller());
Get.lazyPut<Controller2>(() => Controller2());
Get.lazyPut<Controller3>(() => Controller3());
}
}
No comments:
Post a Comment