Preserve native Liquid Glass interactions and add selected tab symbols - #11
Open
glaucohd wants to merge 3 commits into
Open
Preserve native Liquid Glass interactions and add selected tab symbols#11glaucohd wants to merge 3 commits into
glaucohd wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On iOS 26, a simple tap on a tab could fail to reach the native
UITabBar, while dragging across the tabs still worked. This caused Flutter applications to change the selected page through a workaround, without preserving the native Liquid Glass interaction.The package also accepted only one symbol per tab. Applications that wanted an outlined icon for the normal state and a filled icon for the selected state had to rebuild the entire
UiKitView. Rebuilding the platform view caused a visible flash whenever the selected tab changed.Solution
EagerGestureRecognizerto forward pointer events directly to the native UIKit view, preserving native tap handling and the Liquid Glass interaction.selectedSymbolproperty toNativeGlassNavBarItem.UITabBarItem.selectedImagefor the selected symbol, allowing UIKit to switch icons without rebuilding the native tab bar.Additional fixes
currentIndexpoints to an existing tab.falsewhen the support check encounters aMissingPluginException.Compatibility
selectedSymbolis optional. Existing applications continue usingsymbolfor both states, so this change is backward compatible.Validation
flutter analyzecompletes without issues for the changed Dart code.