Fix L10n missing from Calling's context

This commit is contained in:
Matias 2023-07-15 00:46:36 +02:00 committed by Krille-chan
commit 8b342d6751
3 changed files with 16 additions and 12 deletions

View file

@ -17,6 +17,7 @@ class FluffyChatApp extends StatefulWidget {
final List<Client> clients;
final Map<String, String>? queryParameters;
static GlobalKey<VRouterState> routerKey = GlobalKey<VRouterState>();
static GlobalKey<MatrixState> matrixKey = GlobalKey<MatrixState>();
const FluffyChatApp({
Key? key,
this.testWidget,
@ -75,6 +76,7 @@ class FluffyChatAppState extends State<FluffyChatApp> {
initialUrl: _initialUrl ?? '/',
routes: AppRoutes(columnMode ?? false).routes,
builder: (context, child) => Matrix(
key: FluffyChatApp.matrixKey,
context: context,
router: FluffyChatApp.routerKey,
clients: widget.clients,