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
|
// each category
|
||||||
return customSelectStream(
|
return customSelectStream(
|
||||||
'SELECT c.*, (SELECT COUNT(*) FROM todos WHERE category = c.id) AS amount'
|
'SELECT c.*, (SELECT COUNT(*) FROM todos WHERE category = c.id) AS amount'
|
||||||
' FROM categories c '
|
' FROM categories c '
|
||||||
'UNION ALL SELECT null, null, '
|
'UNION ALL SELECT null, null, '
|
||||||
'(SELECT COUNT(*) FROM todos WHERE category IS NULL)',
|
'(SELECT COUNT(*) FROM todos WHERE category IS NULL)',
|
||||||
readsFrom: {todos, categories},
|
readsFrom: {todos, categories},
|
||||||
).map((rows) {
|
).map((rows) {
|
||||||
// when we have the result set, map each row to the data class
|
// 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
|
version: 1.0.0+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.0.0-dev.68.0 <3.0.0"
|
sdk: ">=2.2.0 <3.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
|
|
Loading…
Reference in New Issue