drift/examples
Simon Binder a1af6f6114
Fix opening library in encryption example
2024-04-27 22:47:26 +02:00
..
app Disable third-party warnings in cocoapods project 2024-04-21 18:36:10 +02:00
encryption Fix opening library in encryption example 2024-04-27 22:47:26 +02:00
flutter_web_worker_example Re-run builders, add changelog entry 2023-11-22 13:09:09 +01:00
migrations_example rebuild, format, and dart fix 2024-04-11 11:15:13 -04:00
modular Generate modular manager code 2024-04-24 10:22:35 +02:00
multi_package Add multi-package example 2024-01-31 00:26:36 +01:00
web_worker_example Re-run builders, add changelog entry 2023-11-22 13:09:09 +01:00
with_built_value Raise language version in examples 2024-04-04 22:42:08 +02:00
README.md Add multi-package example 2024-01-31 00:26:36 +01:00

README.md

Examples using drift

This collection of examples demonstrates how to use some advanced drift features.

  • app: A cross-platform Flutter app built with recommended drift options.
  • encryption: A very simple Flutter app running an encrypted drift database.
  • migrations_example: Example showing to how to generate test utilities to verify schema migration.
  • modular: Example using drift's upcoming modular generation mode.
  • with_built_value: Configure build_runner so that drift-generated classes can be used by build_runner.
  • multi_package: This example shows how to share drift definitions between packages.

These two examples exist to highlight a feature of package:drift/web.dart and package:drift/web/workers.dart. However, the setup shown here is now a core drift feature thanks to WasmDatabase.open, which means that this is no longer needed:

  • flutter_web_worker_example: Asynchronously run a drift database through a web worker with Flutter.
  • web_worker_example: Asynchronously run a drift database through a web worker, without Flutter.