bhoominn / nb_utils

Collection of Widgets and helpful Methods that every developer needs.

Home Page:https://pub.dev/packages/nb_utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: No named parameter with the name 'useMaterial3'

AlaaMarawi opened this issue · comments

Hi, thank you for your efforts..
I am depending on v 4.5.2 because of this issue
Flutter 2.8.1

I am facing an error on app run :

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/nb_utils-4.5.2/lib/src/utils/system_utils.dart:156:5: Error: No named parameter with the name 'useMaterial3'.
    useMaterial3: true,
    ^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:222:11: Context: Found this candidate, but the arguments don't match.
  factory ThemeData({
          ^

and build is failed.
This is showing with the last version as well.

Please upgrade your Flutter SDK to latest.

Is your issue solved? @AlaaMarawi

yes, I upgraded to flutter 3.0.5 and useMaterial3 is not causing an error anymore. (on both v 4.5.2 and latest: 4.6.16)