Raise sdk constraints to 2.2 in example app

This commit is contained in:
Simon Binder 2019-06-04 22:06:22 +02:00
parent 8cc2c21c9a
commit 4ca71bb14b
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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: