mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 14:27:23 +01: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> {
 | 
			
		||||
  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,
 | 
			
		||||
 | 
			
		||||
@ -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) {
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user