material-components / material-components-flutter-codelabs

Codelabs for Material Components for Flutter
212 stars 244 forks source link

MDC 101 build has 2 deprecation warnings #303

Open geniuswebtools opened 1 month ago

geniuswebtools commented 1 month ago

You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

I would offer a fix, but I don't have a complete understanding of Dart or Flutter at this point, so if these things were deprecated, I would just be frustrated.

chenkigba commented 3 weeks ago

Similar problems when using Chrome as device. image Weird thing is, when I try to fix the first WARNING, it works. But the second one cannot run after I replace FlutterLoader.loadEntrypoint with FlutterLoader.load.

Mahsaap commented 2 weeks ago
/android/build.gradle Set version to ext.kotlin_version = '1.7.10' For android build.