fix: Remove global key

This commit is contained in:
Krille Fear 2021-10-25 10:48:48 +02:00
commit 3483df545c
3 changed files with 2 additions and 4 deletions

View file

@ -80,7 +80,6 @@ class FluffyChatApp extends StatefulWidget {
}
class _FluffyChatAppState extends State<FluffyChatApp> {
final GlobalKey<MatrixState> _matrix = GlobalKey<MatrixState>();
GlobalKey<VRouterState> _router;
bool columnMode;
String _initialUrl;
@ -147,7 +146,6 @@ class _FluffyChatAppState extends State<FluffyChatApp> {
);
});
return Matrix(
key: _matrix,
context: context,
router: _router,
clients: widget.clients,