Fix build in app example

This commit is contained in:
Simon Binder 2023-05-15 09:12:59 +02:00
parent f11d1bdd83
commit 8498cfb8d9
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 9 additions and 8 deletions

View File

@ -33,9 +33,15 @@ targets:
- web/worker.dart
options:
compiler: dart2js
":copy_compiled_worker_js":
enabled: true
# JS outputs by the build system are private, we use a `build_to: source` builder
# afterwards to make them visible in `web/`.
copy_js:
auto_apply_builders: false
dependencies: [$default]
builders:
":copy_compiled_worker_js":
enabled: true
# build_web_compilers writes a hidden asset, but we want an asset in `web/` for
# flutter to see. So, copy that output. Again, this is not needed for most apps.
@ -45,4 +51,3 @@ builders:
builder_factories: ["CopyCompiledJs.new"]
build_to: source
build_extensions: {'web/worker.dart.js': ['web/shared_worker.dart.js']}
required_inputs: [".dart.js"]

View File

@ -11,7 +11,7 @@ dependencies:
flutter:
sdk: flutter
drift:
drift_dev:
drift_dev: ^2.8.1
file_picker: ^5.2.5
flutter_colorpicker: ^1.0.3
flutter_riverpod: ^2.3.0
@ -39,7 +39,3 @@ dev_dependencies:
flutter:
uses-material-design: true
dependency_overrides:
# Flutter's test packages don't support the latest analyzer yet.
test_api: ^0.4.16