fix: Remove global key

This commit is contained in:
Krille Fear 2021-10-25 10:48:48 +02:00
parent f884e8082f
commit 599c0acb7f
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,

View File

@ -345,7 +345,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
}
});
onUiaRequest[name] ??= c.onUiaRequest.stream.listen(
UiaRequestManager(client, L10n.of(context), navigatorContext)
UiaRequestManager(client, L10n.of(widget.context), navigatorContext)
.onUiaRequest,
);
if (PlatformInfos.isWeb || PlatformInfos.isLinux) {

View File

@ -45,7 +45,7 @@ dependencies:
intl: any
localstorage: ^4.0.0+1
lottie: ^1.2.1
matrix: ^0.6.1
matrix: ^0.6.2
matrix_link_text: ^1.0.2
native_imaging:
git: https://gitlab.com/famedly/libraries/native_imaging.git