jonataslaw / getx

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
MIT License
10.39k stars 1.63k forks source link

Context: Found this candidate, but the arguments don't match. #2061

Open FunlabStudio opened 2 years ago

FunlabStudio commented 2 years ago

Widget build(BuildContext context) { return Sizer(

  builder: (context, orientation, deviceType){
  return GetMaterialApp(
    debugShowCheckedModeBanner: false,

    // home: TestingSwipe(),

// builder: (context, widget) { // return MediaQuery( // //Setting font does not change with system font size // data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0), // child: widget, // ); // }, initialRoute: AppRoutes.BottonBar, getPages: AppPages.list, theme: ThemeData( primarySwatch: Colors.blue, fontFamily: 'HelveticaNeue', visualDensity: VisualDensity.adaptivePlatformDensity, ), ); } ); }

Errors are below:

/F:/Flutter/.pub-cache/hosted/pub.dartlang.org/get-4.1.4/lib/get_navigation/src/root/get_material_app.dart:12:9: Context: Found this candidate, but the arguments don't match. const GetMaterialApp({ ^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

BUILD FAILED in 52s Exception: Gradle task assembleDebug failed with exit code 1

houziruinb87 commented 2 years ago

SAME ISSUE

jonataslaw commented 2 years ago

flutter pub upgrade