🐛 Fix fab menu wrong type
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
				
			|||||||
	archiveVersion = 1;
 | 
						archiveVersion = 1;
 | 
				
			||||||
	classes = {
 | 
						classes = {
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
	objectVersion = 77;
 | 
						objectVersion = 54;
 | 
				
			||||||
	objects = {
 | 
						objects = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Begin PBXBuildFile section */
 | 
					/* Begin PBXBuildFile section */
 | 
				
			||||||
@@ -182,6 +182,8 @@
 | 
				
			|||||||
/* Begin PBXFileSystemSynchronizedRootGroup section */
 | 
					/* Begin PBXFileSystemSynchronizedRootGroup section */
 | 
				
			||||||
		7310A7D52EB10962002C0FD3 /* WatchRunner Watch App */ = {
 | 
							7310A7D52EB10962002C0FD3 /* WatchRunner Watch App */ = {
 | 
				
			||||||
			isa = PBXFileSystemSynchronizedRootGroup;
 | 
								isa = PBXFileSystemSynchronizedRootGroup;
 | 
				
			||||||
 | 
								exceptions = (
 | 
				
			||||||
 | 
								);
 | 
				
			||||||
			path = "WatchRunner Watch App";
 | 
								path = "WatchRunner Watch App";
 | 
				
			||||||
			sourceTree = "<group>";
 | 
								sourceTree = "<group>";
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
@@ -669,14 +671,10 @@
 | 
				
			|||||||
			inputFileListPaths = (
 | 
								inputFileListPaths = (
 | 
				
			||||||
				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
 | 
									"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
 | 
				
			||||||
			);
 | 
								);
 | 
				
			||||||
			inputPaths = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = "[CP] Copy Pods Resources";
 | 
								name = "[CP] Copy Pods Resources";
 | 
				
			||||||
			outputFileListPaths = (
 | 
								outputFileListPaths = (
 | 
				
			||||||
				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
 | 
									"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
 | 
				
			||||||
			);
 | 
								);
 | 
				
			||||||
			outputPaths = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
								runOnlyForDeploymentPostprocessing = 0;
 | 
				
			||||||
			shellPath = /bin/sh;
 | 
								shellPath = /bin/sh;
 | 
				
			||||||
			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
 | 
								shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
 | 
				
			||||||
@@ -734,14 +732,10 @@
 | 
				
			|||||||
			inputFileListPaths = (
 | 
								inputFileListPaths = (
 | 
				
			||||||
				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
 | 
									"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
 | 
				
			||||||
			);
 | 
								);
 | 
				
			||||||
			inputPaths = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = "[CP] Embed Pods Frameworks";
 | 
								name = "[CP] Embed Pods Frameworks";
 | 
				
			||||||
			outputFileListPaths = (
 | 
								outputFileListPaths = (
 | 
				
			||||||
				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
 | 
									"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
 | 
				
			||||||
			);
 | 
								);
 | 
				
			||||||
			outputPaths = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
								runOnlyForDeploymentPostprocessing = 0;
 | 
				
			||||||
			shellPath = /bin/sh;
 | 
								shellPath = /bin/sh;
 | 
				
			||||||
			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
 | 
								shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
 | 
				
			||||||
@@ -770,14 +764,10 @@
 | 
				
			|||||||
			inputFileListPaths = (
 | 
								inputFileListPaths = (
 | 
				
			||||||
				"${PODS_ROOT}/Target Support Files/Pods-WatchRunner Watch App/Pods-WatchRunner Watch App-frameworks-${CONFIGURATION}-input-files.xcfilelist",
 | 
									"${PODS_ROOT}/Target Support Files/Pods-WatchRunner Watch App/Pods-WatchRunner Watch App-frameworks-${CONFIGURATION}-input-files.xcfilelist",
 | 
				
			||||||
			);
 | 
								);
 | 
				
			||||||
			inputPaths = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = "[CP] Embed Pods Frameworks";
 | 
								name = "[CP] Embed Pods Frameworks";
 | 
				
			||||||
			outputFileListPaths = (
 | 
								outputFileListPaths = (
 | 
				
			||||||
				"${PODS_ROOT}/Target Support Files/Pods-WatchRunner Watch App/Pods-WatchRunner Watch App-frameworks-${CONFIGURATION}-output-files.xcfilelist",
 | 
									"${PODS_ROOT}/Target Support Files/Pods-WatchRunner Watch App/Pods-WatchRunner Watch App-frameworks-${CONFIGURATION}-output-files.xcfilelist",
 | 
				
			||||||
			);
 | 
								);
 | 
				
			||||||
			outputPaths = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
								runOnlyForDeploymentPostprocessing = 0;
 | 
				
			||||||
			shellPath = /bin/sh;
 | 
								shellPath = /bin/sh;
 | 
				
			||||||
			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-WatchRunner Watch App/Pods-WatchRunner Watch App-frameworks.sh\"\n";
 | 
								shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-WatchRunner Watch App/Pods-WatchRunner Watch App-frameworks.sh\"\n";
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -348,13 +348,15 @@ class ChatListScreen extends HookConsumerWidget {
 | 
				
			|||||||
    useEffect(() {
 | 
					    useEffect(() {
 | 
				
			||||||
      // Set FAB type to chat
 | 
					      // Set FAB type to chat
 | 
				
			||||||
      final fabMenuNotifier = ref.read(fabMenuTypeProvider.notifier);
 | 
					      final fabMenuNotifier = ref.read(fabMenuTypeProvider.notifier);
 | 
				
			||||||
      WidgetsBinding.instance.addPostFrameCallback((_) {
 | 
					      Future(() {
 | 
				
			||||||
        fabMenuNotifier.state = FabMenuType.chat;
 | 
					        fabMenuNotifier.state = FabMenuType.chat;
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
      return () {
 | 
					      return () {
 | 
				
			||||||
        // Clean up: reset FAB type to main
 | 
					        // Clean up: reset FAB type to main
 | 
				
			||||||
        WidgetsBinding.instance.addPostFrameCallback((_) {
 | 
					        WidgetsBinding.instance.addPostFrameCallback((_) {
 | 
				
			||||||
 | 
					          if (fabMenuNotifier.state == FabMenuType.chat) {
 | 
				
			||||||
            fabMenuNotifier.state = FabMenuType.main;
 | 
					            fabMenuNotifier.state = FabMenuType.main;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    }, []);
 | 
					    }, []);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -46,13 +46,15 @@ class RealmListScreen extends HookConsumerWidget {
 | 
				
			|||||||
    useEffect(() {
 | 
					    useEffect(() {
 | 
				
			||||||
      // Set FAB type to realm
 | 
					      // Set FAB type to realm
 | 
				
			||||||
      final fabMenuNotifier = ref.read(fabMenuTypeProvider.notifier);
 | 
					      final fabMenuNotifier = ref.read(fabMenuTypeProvider.notifier);
 | 
				
			||||||
      WidgetsBinding.instance.addPostFrameCallback((_) {
 | 
					      Future(() {
 | 
				
			||||||
        fabMenuNotifier.state = FabMenuType.realm;
 | 
					        fabMenuNotifier.state = FabMenuType.realm;
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
      return () {
 | 
					      return () {
 | 
				
			||||||
        // Clean up: reset FAB type to main
 | 
					        // Clean up: reset FAB type to main
 | 
				
			||||||
        WidgetsBinding.instance.addPostFrameCallback((_) {
 | 
					        WidgetsBinding.instance.addPostFrameCallback((_) {
 | 
				
			||||||
 | 
					          if (fabMenuNotifier.state == FabMenuType.realm) {
 | 
				
			||||||
            fabMenuNotifier.state = FabMenuType.main;
 | 
					            fabMenuNotifier.state = FabMenuType.main;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    }, []);
 | 
					    }, []);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user