tomyeh / postgresql

Dart Postgresql database library.
https://quire.io
BSD 2-Clause "Simplified" License
15 stars 7 forks source link

Flutter Dart2 Support #2

Closed development-s365 closed 6 years ago

development-s365 commented 6 years ago

Using this package in a flutter test project gives following error:

E/flutter (22587): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (22587): type 'Future<dynamic>' is not a subtype of type 'FutureOr<ConnectionImpl>' where
E/flutter (22587):   Future is from dart:async
E/flutter (22587):   FutureOr is from dart:async
E/flutter (22587):   ConnectionImpl is from package:postgresql2/src/postgresql_impl/postgresql_impl.dart

Switching flutter's SDK to disable dart 2 mode solves this issue but isn't really the solution long term.

tomyeh commented 6 years ago

Dart 2 supported: d4ab10a1c1e829d27a4258ce6d5e16454df27b0a