'flutter 3.0.1 The argument type 'MaterialApp Function(BuildContext)' can't be assigned to the parameter type 'Widget Function(BuildContext, Widget?)
[flutter 3.0.1] whats the wrong or what changed in a new version
ScreenUtilInit(
designSize: Size(360, 690),
builder: (_) => MaterialApp(
debugShowCheckedModeBanner: false,
title: KeyLang.appName.tr(),
theme: CustomTheme.lightTheme(context),
darkTheme: CustomTheme.darkTheme(context),
themeMode: EasyDynamicTheme.of(context).themeMode,
localizationsDelegates: context.localizationDelegates,
supportedLocales: context.supportedLocales,
locale: context.locale,
initialRoute: PageSplash.id,
routes: AppRoute.route,
),
),
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
