mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-05-08 03:07:39 +02:00
fix: Remove global key
This commit is contained in:
parent
f884e8082f
commit
599c0acb7f
@ -80,7 +80,6 @@ class FluffyChatApp extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _FluffyChatAppState extends State<FluffyChatApp> {
|
class _FluffyChatAppState extends State<FluffyChatApp> {
|
||||||
final GlobalKey<MatrixState> _matrix = GlobalKey<MatrixState>();
|
|
||||||
GlobalKey<VRouterState> _router;
|
GlobalKey<VRouterState> _router;
|
||||||
bool columnMode;
|
bool columnMode;
|
||||||
String _initialUrl;
|
String _initialUrl;
|
||||||
@ -147,7 +146,6 @@ class _FluffyChatAppState extends State<FluffyChatApp> {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
return Matrix(
|
return Matrix(
|
||||||
key: _matrix,
|
|
||||||
context: context,
|
context: context,
|
||||||
router: _router,
|
router: _router,
|
||||||
clients: widget.clients,
|
clients: widget.clients,
|
||||||
|
@ -345,7 +345,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
onUiaRequest[name] ??= c.onUiaRequest.stream.listen(
|
onUiaRequest[name] ??= c.onUiaRequest.stream.listen(
|
||||||
UiaRequestManager(client, L10n.of(context), navigatorContext)
|
UiaRequestManager(client, L10n.of(widget.context), navigatorContext)
|
||||||
.onUiaRequest,
|
.onUiaRequest,
|
||||||
);
|
);
|
||||||
if (PlatformInfos.isWeb || PlatformInfos.isLinux) {
|
if (PlatformInfos.isWeb || PlatformInfos.isLinux) {
|
||||||
|
@ -45,7 +45,7 @@ dependencies:
|
|||||||
intl: any
|
intl: any
|
||||||
localstorage: ^4.0.0+1
|
localstorage: ^4.0.0+1
|
||||||
lottie: ^1.2.1
|
lottie: ^1.2.1
|
||||||
matrix: ^0.6.1
|
matrix: ^0.6.2
|
||||||
matrix_link_text: ^1.0.2
|
matrix_link_text: ^1.0.2
|
||||||
native_imaging:
|
native_imaging:
|
||||||
git: https://gitlab.com/famedly/libraries/native_imaging.git
|
git: https://gitlab.com/famedly/libraries/native_imaging.git
|
||||||
|
Loading…
x
Reference in New Issue
Block a user