You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 28, 2021. It is now read-only.
I am totally new to Dart and Flutter, so my knowledge is quite limited.
I am getting the following error when I use your factory contructor. The error happens a couple of seconds after the app is launching on iPhone.
Performing full restart...
Restarted app in 2,563ms.
[VERBOSE-2:dart_error.cc(16)] Unhandled exception:
type 'YamlMap' is not a subtype of type 'Map<String, dynamic>' where
YamlMap is from package:yaml/src/yaml_node.dart
Map is from dart:core
String is from dart:core
#0 new AppConfig.fromJson (package:letsvote/model.dart:91:59) #1 ConfigService.parseYaml (package:letsvote/services.dart:36:16) #2 FlutterConfigService.loadConfig (package:letsvote_mobile/services.dart:15:12)
I am totally new to Dart and Flutter, so my knowledge is quite limited.
I am getting the following error when I use your factory contructor. The error happens a couple of seconds after the app is launching on iPhone.
If I do not use JsonSerializable and do the initialization my self (using the code inside the comments) it works without issues:
As I said I am totally new to this and was inspired by your talks and articles on using dart for Web/Mobile, so I am trying to find my way around it.