mobile: Update to new client API

The settings screen was refactored too.
This commit is contained in:
Elias Projahn 2020-05-01 17:48:23 +02:00
parent 4f7a99d2a1
commit 820ff7eadb
11 changed files with 286 additions and 163 deletions

View file

@ -49,8 +49,8 @@ class HomeScreen extends StatelessWidget {
),
],
),
body: StreamBuilder<List<Person>>(
stream: backend.db.allPersons().watch(),
body: FutureBuilder<List<Person>>(
future: backend.db.getPersons(),
builder: (context, snapshot) {
if (snapshot.hasData) {
return ListView.builder(