Thursday, July 21, 2022

GetX Route with unnamed

                                                         GetX Route with Unnamed


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

Featured post

Compress Image With Show File Size & Resolution in Flutter

 Compress Image With Show File Size & Resolution  1.Multiple File Image Compress with file Size import 'dart:io' ; import 'p...

LightBlog