mirror of https://github.com/AMT-Cheif/drift.git
Raise sdk constraints to 2.2 in example app
This commit is contained in:
parent
8cc2c21c9a
commit
4ca71bb14b
|
@ -66,9 +66,9 @@ class Database extends _$Database {
|
|||
// each category
|
||||
return customSelectStream(
|
||||
'SELECT c.*, (SELECT COUNT(*) FROM todos WHERE category = c.id) AS amount'
|
||||
' FROM categories c '
|
||||
'UNION ALL SELECT null, null, '
|
||||
'(SELECT COUNT(*) FROM todos WHERE category IS NULL)',
|
||||
' FROM categories c '
|
||||
'UNION ALL SELECT null, null, '
|
||||
'(SELECT COUNT(*) FROM todos WHERE category IS NULL)',
|
||||
readsFrom: {todos, categories},
|
||||
).map((rows) {
|
||||
// when we have the result set, map each row to the data class
|
||||
|
|
|
@ -4,7 +4,7 @@ description: A todo list application that uses moor to store data
|
|||
version: 1.0.0+1
|
||||
|
||||
environment:
|
||||
sdk: ">=2.0.0-dev.68.0 <3.0.0"
|
||||
sdk: ">=2.2.0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
|
Loading…
Reference in New Issue