After changing to version 2.0.0, Unhandled Exception: type '_Map<Object?, Object?>' is not a subtype of type 'Map<String, dynamic>?' in type cast error started to occur.
I created a new project and tested it.
Same error occurs.
The logic below only modifies the button logic from the basic flutter sample.
Thanks for sharing this great library.
After changing to version 2.0.0, Unhandled Exception: type '_Map<Object?, Object?>' is not a subtype of type 'Map<String, dynamic>?' in type cast error started to occur.
I created a new project and tested it. Same error occurs.
The logic below only modifies the button logic from the basic flutter sample.
The test was conducted on Android.
E/flutter (18774): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type '_Map<Object?, Object?>' is not a subtype of type 'Map<String, dynamic>?' in type cast E/flutter (18774): #0 MethodChannel._invokeMethod platform_channel.dart:310 E/flutter (18774):
E/flutter (18774): #1 CharsetDetectorAndroid.autoDecode
flutter_charset_detector_android.dart:17
E/flutter (18774):
E/flutter (18774): #2 _MyHomePageState._incrementCounter
main.dart:66
E/flutter (18774):
E/flutter (18774):
Flutter 3.13.6 • channel stable • https://github.com/flutter/flutter.git Engine • revision a794cf2681 Tools • Dart 3.1.3 • DevTools 2.25.0