fweinaug / system_settings

Flutter plugin to open system settings on iOS and Android
https://pub.dev/packages/system_settings
MIT License
11 stars 68 forks source link

Update APIs #17

Closed simplekjl closed 2 years ago

simplekjl commented 2 years ago

I tried to use the library but after opening my code and try to compiled I am getting the following error

The plugin `system_settings` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it 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.

Some more context

../../../Desktop/development/flutter/.pub-cache/hosted/pub.dartlang.org/settings_ui-1.0.0/lib/src/cupertino_settings_item.dart:76:51: Error: A value of type 'ListTileThemeData' can't be assigned to a variable of type 'ListTileTheme'.
 - 'ListTileThemeData' is from 'package:flutter/src/material/list_tile.dart' ('../../../Desktop/development/flutter/packages/flutter/lib/src/material/list_tile.dart').
 - 'ListTileTheme' is from 'package:flutter/src/material/list_tile.dart' ('../../../Desktop/development/flutter/packages/flutter/lib/src/material/list_tile.dart').
    final ListTileTheme tileTheme = ListTileTheme.of(context);
fweinaug commented 2 years ago

see #10