vanlooverenkoen / db_viewer

A Flutter package that allows you to view/ filter/ search your moor database in-app
40 stars 16 forks source link

Example does not support web #42

Open vanlooverenkoen opened 3 years ago

vanlooverenkoen commented 3 years ago

@vanlooverenkoen The update has broken the web target it seems.

flutter run -d chrome --release


../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:26:13:
Error: Type 'Pointer' not found.
    Pointer<Pointer<char>>);
            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:26:13:
Error: Expected 0 type arguments.
    Pointer<Pointer<char>>);
            ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:26:5:
Error: Type 'Pointer' not found.
    Pointer<Pointer<char>>);
    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:26:5:
Error: Expected 0 type arguments.
    Pointer<Pointer<char>>);
    ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:28:5:
Error: Type 'Pointer' not found.
    Pointer<sqlite3> db,
    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:28:5:
Error: Expected 0 type arguments.
    Pointer<sqlite3> db,
    ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:29:13:
Error: Type 'Void' not found.
    Pointer<Void> zSql,
            ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:29:5:
Error: Type 'Pointer' not found.
    Pointer<Void> zSql,
    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:29:5:
Error: Expected 0 type arguments.
    Pointer<Void> zSql,
    ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:31:13:
Error: Type 'Pointer' not found.
    Pointer<Pointer<sqlite3_stmt>> ppStmt,
            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:31:13:
Error: Expected 0 type arguments.
    Pointer<Pointer<sqlite3_stmt>> ppStmt,
            ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:31:5:
Error: Type 'Pointer' not found.
    Pointer<Pointer<sqlite3_stmt>> ppStmt,
    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:31:5:
Error: Expected 0 type arguments.
    Pointer<Pointer<sqlite3_stmt>> ppStmt,
    ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:32:13:
Error: Type 'Pointer' not found.
    Pointer<Pointer<char>> pzTail);
            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:32:13:
Error: Expected 0 type arguments.
    Pointer<Pointer<char>> pzTail);
            ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:32:5:
Error: Type 'Pointer' not found.
    Pointer<Pointer<char>> pzTail);
    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:32:5:
Error: Expected 0 type arguments.
    Pointer<Pointer<char>> pzTail);
    ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:35:17:
Error: Type 'NativeType' not found.
Expando<Pointer<NativeType>> _prepareFunction = Expando();
                ^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:35:9:
Error: Type 'Pointer' not found.
Expando<Pointer<NativeType>> _prepareFunction = Expando();
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:35:9:
Error: Expected 0 type arguments.
Expando<Pointer<NativeType>> _prepareFunction = Expando();
        ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:59:11:
Error: Type 'NativeType' not found.
  Pointer<NativeType> get appropriateOpenFunction {
          ^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:59:3:
Error: Type 'Pointer' not found.
  Pointer<NativeType> get appropriateOpenFunction {
  ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:59:3:
Error: Expected 0 type arguments.
  Pointer<NativeType> get appropriateOpenFunction {
  ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:16:20:
Error: Type 'Opaque' not found.
class Utf8 extends Opaque {}
                   ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:19:26:
Error: Type 'Pointer' not found.
extension Utf8Pointer on Pointer<Utf8> {
                         ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:19:26:
Error: Expected 0 type arguments.
extension Utf8Pointer on Pointer<Utf8> {
                         ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:64:3:
Error: Type 'Pointer' not found.
  Pointer<Utf8> toNativeUtf8({Allocator allocator = malloc}) {
  ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:64:3:
Error: Expected 0 type arguments.
  Pointer<Utf8> toNativeUtf8({Allocator allocator = malloc}) {
  ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:64:31:
Error: Type 'Allocator' not found.
  Pointer<Utf8> toNativeUtf8({Allocator allocator = malloc}) {
                              ^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:16:21:
Error: Type 'Opaque' not found.
class Utf16 extends Opaque {}
                    ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:19:27:
Error: Type 'Pointer' not found.
extension Utf16Pointer on Pointer<Utf16> {
                          ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:19:27:
Error: Expected 0 type arguments.
extension Utf16Pointer on Pointer<Utf16> {
                          ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:50:46:
Error: Type 'Uint16' not found.
  static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) =>
                                             ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:50:38:
Error: Type 'Pointer' not found.
  static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) =>
                                     ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:50:38:
Error: Expected 0 type arguments.
  static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) =>
                                     ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:53:48:
Error: Type 'Uint16' not found.
  static String _toUnknownLengthString(Pointer<Uint16> codeUnits) {
                                               ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:53:40:
Error: Type 'Pointer' not found.
  static String _toUnknownLengthString(Pointer<Uint16> codeUnits) {
                                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:53:40:
Error: Expected 0 type arguments.
  static String _toUnknownLengthString(Pointer<Uint16> codeUnits) {
                                       ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:76:3:
Error: Type 'Pointer' not found.
  Pointer<Utf16> toNativeUtf16({Allocator allocator = malloc}) {
  ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:76:3:
Error: Expected 0 type arguments.
  Pointer<Utf16> toNativeUtf16({Allocator allocator = malloc}) {
  ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:76:33:
Error: Type 'Allocator' not found.
  Pointer<Utf16> toNativeUtf16({Allocator allocator = malloc}) {
                                ^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:9:7:
Error: Type 'DynamicLibrary' not found.
final DynamicLibrary stdlib = Platform.isWindows
      ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:13:29:
Error: Type 'Pointer' not found.
typedef PosixMallocNative = Pointer Function(IntPtr);
                            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:13:46:
Error: Type 'IntPtr' not found.
typedef PosixMallocNative = Pointer Function(IntPtr);
                                             ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:14:23:
Error: Type 'Pointer' not found.
typedef PosixMalloc = Pointer Function(int);
                      ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:18:29:
Error: Type 'Pointer' not found.
typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size);
                            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:18:46:
Error: Type 'IntPtr' not found.
typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size);
                                             ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:18:58:
Error: Type 'IntPtr' not found.
typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size);
                                                         ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:19:23:
Error: Type 'Pointer' not found.
typedef PosixCalloc = Pointer Function(int num, int size);
                      ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:23:27:
Error: Type 'Void' not found.
typedef PosixFreeNative = Void Function(Pointer);
                          ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:23:41:
Error: Type 'Pointer' not found.
typedef PosixFreeNative = Void Function(Pointer);
                                        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:24:35:
Error: Type 'Pointer' not found.
typedef PosixFree = void Function(Pointer);
                                  ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:28:31:
Error: Type 'Pointer' not found.
typedef WinGetProcessHeapFn = Pointer Function();
                              ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:31:7:
Error: Type 'Pointer' not found.
final Pointer processHeap = winGetProcessHeap();
      ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:33:30:
Error: Type 'Pointer' not found.
typedef WinHeapAllocNative = Pointer Function(Pointer, Uint32, IntPtr);
                             ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:33:47:
Error: Type 'Pointer' not found.
typedef WinHeapAllocNative = Pointer Function(Pointer, Uint32, IntPtr);
                                              ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:33:56:
Error: Type 'Uint32' not found.
typedef WinHeapAllocNative = Pointer Function(Pointer, Uint32, IntPtr);
                                                       ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:33:64:
Error: Type 'IntPtr' not found.
typedef WinHeapAllocNative = Pointer Function(Pointer, Uint32, IntPtr);
                                                               ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:34:24:
Error: Type 'Pointer' not found.
typedef WinHeapAlloc = Pointer Function(Pointer, int, int);
                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:34:41:
Error: Type 'Pointer' not found.
typedef WinHeapAlloc = Pointer Function(Pointer, int, int);
                                        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:38:29:
Error: Type 'Int32' not found.
typedef WinHeapFreeNative = Int32 Function(
                            ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:39:5:
Error: Type 'Pointer' not found.
    Pointer heap, Uint32 flags, Pointer memory);
    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:39:19:
Error: Type 'Uint32' not found.
    Pointer heap, Uint32 flags, Pointer memory);
                  ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:39:33:
Error: Type 'Pointer' not found.
    Pointer heap, Uint32 flags, Pointer memory);
                                ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:40:36:
Error: Type 'Pointer' not found.
typedef WinHeapFree = int Function(Pointer heap, int flags, Pointer memory);
                                   ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:40:61:
Error: Type 'Pointer' not found.
typedef WinHeapFree = int Function(Pointer heap, int flags, Pointer memory);
                                                            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:53:35:
Error: Type 'Allocator' not found.
class _MallocAllocator implements Allocator {
                                  ^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:65:3:
Error: Type 'Pointer' not found.
  Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) {
  ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:65:3:
Error: Expected 0 type arguments.
  Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) {
  ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:65:33:
Error: Type 'NativeType' not found.
  Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) {
                                ^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:90:13:
Error: Type 'Pointer' not found.
  void free(Pointer pointer) {
            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:108:7:
Error: Type 'Allocator' not found.
const Allocator malloc = _MallocAllocator();
      ^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:117:35:
Error: Type 'Allocator' not found.
class _CallocAllocator implements Allocator {
                                  ^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:130:3:
Error: Type 'Pointer' not found.
  Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) {
  ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:130:3:
Error: Expected 0 type arguments.
  Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) {
  ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:130:33:
Error: Type 'NativeType' not found.
  Pointer<T> allocate<T extends NativeType>(int byteCount, {int? alignment}) {
                                ^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:156:13:
Error: Type 'Pointer' not found.
  void free(Pointer pointer) {
            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:175:7:
Error: Type 'Allocator' not found.
const Allocator calloc = _CallocAllocator();
      ^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/moor-4.3.0/lib/sr
c/ffi/database_tracker.dart:64:21:
Error: The getter 'Pointer' isn't defined for the class 'DatabaseTracker'.
 - 'DatabaseTracker' is from 'package:moor/src/ffi/database_tracker.dart'
 ('../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/moor-4.3.0/lib
 /src/ffi/database_tracker.dart').
        final ptr = Pointer.fromAddress(row.columnAt(0) as int);
                    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/api/sqlite3.dart:14:17:
Error: 'Pointer' isn't a type.
  final Pointer<Pointer<char>> _sqlite3_temp_directory;
                ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/api/sqlite3.dart:14:9:
Error: 'Pointer' isn't a type.
  final Pointer<Pointer<char>> _sqlite3_temp_directory;
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/api/sqlite3.dart:20:13:
Error: 'DynamicLibrary' isn't a type.
  Sqlite3._(DynamicLibrary library)
            ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/api/sqlite3.dart:64:24:
Error: 'Pointer' isn't a type.
  Database fromPointer(Pointer<void> database) {
                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/ffi.dart:20:26:
Error: 'Uint8' isn't a type.
    final asBytes = cast<Uint8>();
                         ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/ffi.dart:31:22:
Error: 'Uint8' isn't a type.
        .decode(cast<Uint8>().asTypedList(resolvedLength).buffer.asUint8List());
                     ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/ffi.dart:40:25:
Error: 'Uint8' isn't a type.
    list.setAll(0, cast<Uint8>().asTypedList(length));
                        ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/ffi.dart:120:17:
Error: 'Pointer' isn't a type.
  final Pointer<Pointer<sqlite3_value>> argArray;
                ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/ffi.dart:120:9:
Error: 'Pointer' isn't a type.
  final Pointer<Pointer<sqlite3_value>> argArray;
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/database.dart:6:9:
Error: 'Pointer' isn't a type.
  final Pointer<sqlite3> _handle;
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/database.dart:8:22:
Error: 'Void' isn't a type.
  final List<Pointer<Void>> _furtherAllocations = [];
                     ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/database.dart:8:14:
Error: 'Pointer' isn't a type.
  final List<Pointer<Void>> _furtherAllocations = [];
             ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/database.dart:46:28:
Error: 'Pointer' isn't a type.
    final outDb = allocate<Pointer<sqlite3>>();
                           ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/database.dart:100:31:
Error: 'Pointer' isn't a type.
    final errorOut = allocate<Pointer<char>>();
                              ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/database.dart:134:30:
Error: 'Pointer' isn't a type.
    final stmtOut = allocate<Pointer<sqlite3_stmt>>();
                             ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/database.dart:151:17:
Error: 'NativeFunction' isn't a type.
          .cast<NativeFunction<sqlite3_prepare_v3_native>>()
                ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/database.dart:170:17:
Error: 'NativeFunction' isn't a type.
          .cast<NativeFunction<sqlite3_prepare_v2_native>>()
                ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/exception.dart:4:24:
Error: 'Pointer' isn't a type.
    Bindings bindings, Pointer<sqlite3> db, int returnCode) {
                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:35:24:
Error: The getter 'Pointer' isn't defined for the class 'FunctionStore'.
 - 'FunctionStore' is from 'package:sqlite3/src/impl/implementation.dart'
 ('../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/
 lib/src/impl/implementation.dart').
      applicationData: Pointer.fromAddress(id),
                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:47:24:
Error: The getter 'Pointer' isn't defined for the class 'FunctionStore'.
 - 'FunctionStore' is from 'package:sqlite3/src/impl/implementation.dart'
 ('../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/
 lib/src/impl/implementation.dart').
      applicationData: Pointer.fromAddress(id),
                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:61:17:
Error: 'NativeType' isn't a type.
  final Pointer<NativeType>? xFunc;
                ^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:61:9:
Error: 'Pointer' isn't a type.
  final Pointer<NativeType>? xFunc;
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:62:17:
Error: 'NativeType' isn't a type.
  final Pointer<NativeType>? xStep;
                ^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:62:9:
Error: 'Pointer' isn't a type.
  final Pointer<NativeType>? xStep;
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:63:17:
Error: 'NativeType' isn't a type.
  final Pointer<NativeType>? xFinal;
                ^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:63:9:
Error: 'Pointer' isn't a type.
  final Pointer<NativeType>? xFinal;
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:64:17:
Error: 'NativeType' isn't a type.
  final Pointer<NativeType> xDestroy;
                ^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:64:9:
Error: 'Pointer' isn't a type.
  final Pointer<NativeType> xDestroy;
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:66:17:
Error: 'NativeType' isn't a type.
  final Pointer<NativeType> applicationData;
                ^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:66:9:
Error: 'Pointer' isn't a type.
  final Pointer<NativeType> applicationData;
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:78:3:
Error: 'Pointer' isn't a type.
  Pointer<sqlite3_context> context,
  ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:80:11:
Error: 'Pointer' isn't a type.
  Pointer<Pointer<sqlite3_value>> args,
          ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:80:3:
Error: 'Pointer' isn't a type.
  Pointer<Pointer<sqlite3_value>> args,
  ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:95:9:
Error: 'Void' isn't a type.
Pointer<Void> _xFunc = Pointer.fromFunction<
        ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:95:1:
Error: 'Pointer' isn't a type.
Pointer<Void> _xFunc = Pointer.fromFunction<
^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:96:9:
Error: 'Void' isn't a type.
        Void Function(Pointer<sqlite3_context>, Int32,
        ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:96:23:
Error: 'Pointer' isn't a type.
        Void Function(Pointer<sqlite3_context>, Int32,
                      ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:96:49:
Error: 'Int32' isn't a type.
        Void Function(Pointer<sqlite3_context>, Int32,
                                                ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:97:21:
Error: 'Pointer' isn't a type.
            Pointer<Pointer<sqlite3_value>>)>(_scalarFunctionImpl)
                    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:97:13:
Error: 'Pointer' isn't a type.
            Pointer<Pointer<sqlite3_value>>)>(_scalarFunctionImpl)
            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:95:24:
Error: Getter not found: 'Pointer'.
Pointer<Void> _xFunc = Pointer.fromFunction<
                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:100:28:
Error: 'Void' isn't a type.
void _xDestroyImpl(Pointer<Void> data) {
                           ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:100:20:
Error: 'Pointer' isn't a type.
void _xDestroyImpl(Pointer<Void> data) {
                   ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:104:9:
Error: 'Void' isn't a type.
Pointer<Void> _xDestroy =
        ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:104:1:
Error: 'Pointer' isn't a type.
Pointer<Void> _xDestroy =
^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:105:26:
Error: 'Void' isn't a type.
    Pointer.fromFunction<Void Function(Pointer<Void>)>(_xDestroyImpl).cast();
                         ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:105:48:
Error: 'Void' isn't a type.
    Pointer.fromFunction<Void Function(Pointer<Void>)>(_xDestroyImpl).cast();
                                               ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:105:40:
Error: 'Pointer' isn't a type.
    Pointer.fromFunction<Void Function(Pointer<Void>)>(_xDestroyImpl).cast();
                                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:105:5:
Error: Getter not found: 'Pointer'.
    Pointer.fromFunction<Void Function(Pointer<Void>)>(_xDestroyImpl).cast();
    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:108:3:
Error: 'Pointer' isn't a type.
  Pointer<sqlite3_context> context,
  ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:110:11:
Error: 'Pointer' isn't a type.
  Pointer<Pointer<sqlite3_value>> args,
          ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:110:3:
Error: 'Pointer' isn't a type.
  Pointer<Pointer<sqlite3_value>> args,
  ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:113:57:
Error: 'Int64' isn't a type.
      context.aggregateContext(bindingsForStore, sizeOf<Int64>()).cast<Int64>();
                                                        ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:113:50:
Error: Method not found: 'sizeOf'.
      context.aggregateContext(bindingsForStore, sizeOf<Int64>()).cast<Int64>();
                                                 ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:113:72:
Error: 'Int64' isn't a type.
      context.aggregateContext(bindingsForStore, sizeOf<Int64>()).cast<Int64>();
                                                                       ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:142:9:
Error: 'Void' isn't a type.
Pointer<Void> _xStep = Pointer.fromFunction<
        ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:142:1:
Error: 'Pointer' isn't a type.
Pointer<Void> _xStep = Pointer.fromFunction<
^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:143:9:
Error: 'Void' isn't a type.
        Void Function(Pointer<sqlite3_context>, Int32,
        ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:143:23:
Error: 'Pointer' isn't a type.
        Void Function(Pointer<sqlite3_context>, Int32,
                      ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:143:49:
Error: 'Int32' isn't a type.
        Void Function(Pointer<sqlite3_context>, Int32,
                                                ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:144:21:
Error: 'Pointer' isn't a type.
            Pointer<Pointer<sqlite3_value>>)>(_xStepImpl)
                    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:144:13:
Error: 'Pointer' isn't a type.
            Pointer<Pointer<sqlite3_value>>)>(_xStepImpl)
            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:142:24:
Error: Getter not found: 'Pointer'.
Pointer<Void> _xStep = Pointer.fromFunction<
                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:147:18:
Error: 'Pointer' isn't a type.
void _xFinalImpl(Pointer<sqlite3_context> context) {
                 ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:148:71:
Error: 'Int64' isn't a type.
  final agCtxPtr = context.aggregateContext(bindingsForStore, 0).cast<Int64>();
                                                                      ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:172:9:
Error: 'Void' isn't a type.
Pointer<Void> _xFinal =
        ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:172:1:
Error: 'Pointer' isn't a type.
Pointer<Void> _xFinal =
^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:173:26:
Error: 'Void' isn't a type.
    Pointer.fromFunction<Void Function(Pointer<sqlite3_context>)>(_xFinalImpl)
                         ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:173:40:
Error: 'Pointer' isn't a type.
    Pointer.fromFunction<Void Function(Pointer<sqlite3_context>)>(_xFinalImpl)
                                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/function_store.dart:173:5:
Error: Getter not found: 'Pointer'.
    Pointer.fromFunction<Void Function(Pointer<sqlite3_context>)>(_xFinalImpl)
    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/statement.dart:4:9:
Error: 'Pointer' isn't a type.
  final Pointer<sqlite3_stmt> _stmt;
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/statement.dart:10:14:
Error: 'Pointer' isn't a type.
  final List<Pointer> _allocatedWhileBinding = [];
             ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/statement.dart:65:22:
Error: The argument type 'List<dynamic>' can't be assigned to the parameter type
'List<String>'.
 - 'List' is from 'dart:core'.
    return ResultSet(names, rows);
                     ^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/statement.dart:120:49:
Error: 'Void' isn't a type.
          final ptr = allocateBytes(param).cast<Void>();
                                                ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/impl/statement.dart:118:25:
Error: The getter 'Pointer' isn't defined for the class 'PreparedStatementImpl'.
 - 'PreparedStatementImpl' is from 'package:sqlite3/src/impl/implementation.dart'
 ('../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/
 lib/src/impl/implementation.dart').
              _stmt, i, Pointer.fromAddress(1), param.length, nullPtr());
                        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/load_library.dart:27:14:
Error: Getter not found: 'DynamicLibrary'.
      return DynamicLibrary.open('libsqlite3.so');
             ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/load_library.dart:40:16:
Error: Getter not found: 'DynamicLibrary'.
        return DynamicLibrary.open('/data/data/$appId/lib/libsqlite3.so');
               ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/load_library.dart:48:14:
Error: Getter not found: 'DynamicLibrary'.
      return DynamicLibrary.open('sqlite3.framework/sqlite3');
             ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/load_library.dart:57:14:
Error: Getter not found: 'DynamicLibrary'.
      return DynamicLibrary.process();
             ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/load_library.dart:61:12:
Error: Getter not found: 'DynamicLibrary'.
    return DynamicLibrary.open('/usr/lib/libsqlite3.dylib');
           ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/load_library.dart:64:12:
Error: Getter not found: 'DynamicLibrary'.
    return DynamicLibrary.open('sqlite3.dll');
           ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:17:47:
Error: Getter not found: 'nullptr'.
Pointer<T> nullPtr<T extends NativeType>() => nullptr.cast<T>();
                                              ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:19:33:
Error: 'Void' isn't a type.
Pointer<Void> _freeImpl(Pointer<Void> ptr) {
                                ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:19:25:
Error: 'Pointer' isn't a type.
Pointer<Void> _freeImpl(Pointer<Void> ptr) {
                        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:27:38:
Error: 'Void' isn't a type.
final Pointer<NativeFunction<Pointer<Void> Function(Pointer<Void>)>>
                                     ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:27:30:
Error: 'Pointer' isn't a type.
final Pointer<NativeFunction<Pointer<Void> Function(Pointer<Void>)>>
                             ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:27:61:
Error: 'Void' isn't a type.
final Pointer<NativeFunction<Pointer<Void> Function(Pointer<Void>)>>
                                                            ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:27:53:
Error: 'Pointer' isn't a type.
final Pointer<NativeFunction<Pointer<Void> Function(Pointer<Void>)>>
                                                    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:27:15:
Error: 'NativeFunction' isn't a type.
final Pointer<NativeFunction<Pointer<Void> Function(Pointer<Void>)>>
              ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:27:7:
Error: 'Pointer' isn't a type.
final Pointer<NativeFunction<Pointer<Void> Function(Pointer<Void>)>>
      ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:28:23:
Error: Getter not found: 'Pointer'.
    freeFunctionPtr = Pointer.fromFunction(_freeImpl);
                      ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/memory.dart:35:33:
Error: 'Uint8' isn't a type.
  final ptr = allocate.allocate<Uint8>(bytes.length + additionalLength);
                                ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/constants.dart:40:9:
Error: 'Void' isn't a type.
Pointer<Void> SQLITE_TRANSIENT = Pointer.fromAddress(-1);
        ^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/constants.dart:40:1:
Error: 'Pointer' isn't a type.
Pointer<Void> SQLITE_TRANSIENT = Pointer.fromAddress(-1);
^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/constants.dart:40:34:
Error: Getter not found: 'Pointer'.
Pointer<Void> SQLITE_TRANSIENT = Pointer.fromAddress(-1);
                                 ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/sqlite3.ffi.dart:181:9:
Error: 'DynamicLibrary' isn't a type.
  final DynamicLibrary library;
        ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:35:17:
Error: 'NativeType' isn't a type.
Expando<Pointer<NativeType>> _prepareFunction = Expando();
                ^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/sqlite3-1.0.0/lib
/src/ffi/prepare_support.dart:35:9:
Error: 'Pointer' isn't a type.
Expando<Pointer<NativeType>> _prepareFunction = Expando();
        ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:25:19:
Error: 'Uint8' isn't a type.
    final Pointer<Uint8> array = cast<Uint8>();
                  ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:25:11:
Error: 'Pointer' isn't a type.
    final Pointer<Uint8> array = cast<Uint8>();
          ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:25:39:
Error: 'Uint8' isn't a type.
    final Pointer<Uint8> array = cast<Uint8>();
                                      ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:47:29:
Error: 'Uint8' isn't a type.
    return utf8.decode(cast<Uint8>().asTypedList(length));
                            ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:64:31:
Error: 'Allocator' isn't a type.
  Pointer<Utf8> toNativeUtf8({Allocator allocator = malloc}) {
                              ^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:66:19:
Error: 'Uint8' isn't a type.
    final Pointer<Uint8> result = allocator<Uint8>(units.length + 1);
                  ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:66:11:
Error: 'Pointer' isn't a type.
    final Pointer<Uint8> result = allocator<Uint8>(units.length + 1);
          ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf8.dart:66:45:
Error: 'Uint8' isn't a type.
    final Pointer<Uint8> result = allocator<Uint8>(units.length + 1);
                                            ^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:25:19:
Error: 'Uint16' isn't a type.
    final Pointer<Uint16> array = cast<Uint16>();
                  ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:25:11:
Error: 'Pointer' isn't a type.
    final Pointer<Uint16> array = cast<Uint16>();
          ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:25:40:
Error: 'Uint16' isn't a type.
    final Pointer<Uint16> array = cast<Uint16>();
                                       ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:43:42:
Error: 'Uint16' isn't a type.
      return _toUnknownLengthString(cast<Uint16>());
                                         ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:46:40:
Error: 'Uint16' isn't a type.
      return _toKnownLengthString(cast<Uint16>(), length);
                                       ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:50:46:
Error: 'Uint16' isn't a type.
  static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) =>
                                             ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:50:38:
Error: 'Pointer' isn't a type.
  static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) =>
                                     ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:53:48:
Error: 'Uint16' isn't a type.
  static String _toUnknownLengthString(Pointer<Uint16> codeUnits) {
                                               ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:53:40:
Error: 'Pointer' isn't a type.
  static String _toUnknownLengthString(Pointer<Uint16> codeUnits) {
                                       ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:76:33:
Error: 'Allocator' isn't a type.
  Pointer<Utf16> toNativeUtf16({Allocator allocator = malloc}) {
                                ^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:78:19:
Error: 'Uint16' isn't a type.
    final Pointer<Uint16> result = allocator<Uint16>(units.length + 1);
                  ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:78:11:
Error: 'Pointer' isn't a type.
    final Pointer<Uint16> result = allocator<Uint16>(units.length + 1);
          ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/utf16.dart:78:46:
Error: 'Uint16' isn't a type.
    final Pointer<Uint16> result = allocator<Uint16>(units.length + 1);
                                             ^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:9:7:
Error: 'DynamicLibrary' isn't a type.
final DynamicLibrary stdlib = Platform.isWindows
      ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:10:7:
Error: Getter not found: 'DynamicLibrary'.
    ? DynamicLibrary.open('kernel32.dll')
      ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:11:7:
Error: Getter not found: 'DynamicLibrary'.
    : DynamicLibrary.process();
      ^^^^^^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:31:7:
Error: 'Pointer' isn't a type.
final Pointer processHeap = winGetProcessHeap();
      ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:66:5:
Error: 'Pointer' isn't a type.
    Pointer<T> result;
    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:90:13:
Error: 'Pointer' isn't a type.
  void free(Pointer pointer) {
            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:108:7:
Error: 'Allocator' isn't a type.
const Allocator malloc = _MallocAllocator();
      ^^^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:131:5:
Error: 'Pointer' isn't a type.
    Pointer<T> result;
    ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:156:13:
Error: 'Pointer' isn't a type.
  void free(Pointer pointer) {
            ^^^^^^^
../../../../../../../../../../../../../.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0/lib/src
/allocation.dart:175:7:
Error: 'Allocator' isn't a type.
const Allocator calloc = _CallocAllocator();
      ^^^^^^^^^
Error: Compilation failed.

Compiling lib/main.dart for the Web...                             19.8s
Exception: Failed to compile application for the Web.

_Originally posted by @gedw99 in https://github.com/vanlooverenkoen/moor_db_viewer/issues/38#issuecomment-871137473_

vanlooverenkoen commented 3 years ago

I tested with moor_db_viewer 4.0.0 and I have the same issue there. For web we should use another enging. That is not yet added in the example: https://moor.simonbinder.eu/web/

@gedw99 Did you follow that guide?

vanlooverenkoen commented 3 years ago

In the my_db.dart file you should use WebDatabase instead of the _openConnection method. ffi should be removed from that file.

@UseMoor(tables: [Todos, Users])
class MyDatabase extends _$MyDatabase {
  MyDatabase() : super(WebDatabase('db'));

  @override
  int get schemaVersion => 1;
}
gedw99 commented 3 years ago

Ok I get it.

I wonder if there is a way to setup the example so that these manual switches are not needed ?

Typically compile time or runtime checks are used.

For compile time checks the fact that web cannot depend on FFI means that we need a new entry point to the code ?

vanlooverenkoen commented 3 years ago

That is possible. If you follow the web guide you can see how to share code between web & mobile. It is just not added to the example project

gedw99 commented 3 years ago

I cant promise a PR, but if i get a time opening will swing back and do it.

vanlooverenkoen commented 3 years ago

👍 alright. I first have some other packages that need to be updated first. After that I will come back to moor_db_viewer to add this. This is not a blocking issue because it works perfectly on web. You only have to follow the moor documentation to get it working in your app.

gedw99 commented 3 years ago

yep i get that its not blocking. Just wanted to make things tidy.

vanlooverenkoen commented 3 years ago

Yes indeed. That is why I created this new ticket so I don't forget to add this. Thanks for testing the example on web :)