Better notifications
This commit is contained in:
parent
2c6a37d37a
commit
c4353bbea6
14 changed files with 296 additions and 25 deletions
|
|
@ -47,8 +47,8 @@ class App extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
home: Builder(
|
||||
builder: (BuildContext context) => StreamBuilder<LoginState>(
|
||||
stream: Matrix.of(context).client.onLoginStateChanged.stream,
|
||||
builder: (BuildContext context) => FutureBuilder<LoginState>(
|
||||
future: Matrix.of(context).client.onLoginStateChanged.stream.first,
|
||||
builder: (context, snapshot) {
|
||||
if (!snapshot.hasData) {
|
||||
return Scaffold(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue