rodydavis / flutter_login

100% Shared Code Android/iOS Login Example - JSON API
https://rodydavis.github.io/flutter_login/
713 stars 199 forks source link

The plugins `get_version, local_auth` use a deprecated version of the Android embedding. #37

Open Loverofart opened 3 years ago

Loverofart commented 3 years ago

I guess this is because of the new flutter updates. How do I fix it?

The pluginsget_version, local_auth` use a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration. Launching lib\main.dart on sdk gphone x86 64 arm64 in debug mode... ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/builder.dart:326:49: Error: The getter 'children' isn't defined for the class 'InlineSpan'.

../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:54:26: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. blockquote: theme.textTheme.body1, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:69:28: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. p: theme.textTheme.body1, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:101:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

Try correcting the name to the name of an existing getter, or defining a getter or field named 'display2'. h2: theme.textTheme.display2, ^^^^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:105:27: Error: The getter 'display1' isn't defined for the class 'TextTheme'.

FAILURE: Build failed with an exception.

BUILD FAILED in 51s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

`

Gunin2001 commented 2 years ago

Got the same error