Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are multiple heroes that share the same tag within a subtree. #416

Open
max-anders opened this issue Jul 19, 2024 · 1 comment
Open

Comments

@max-anders
Copy link

max-anders commented Jul 19, 2024

Hello I get this error when trying to show the modal bottom sheet from a SlidingUpPanel

There are multiple heroes that share the same tag within a subtree.

It only happens in debugging mode

SlidingUpPanel( controller: controller, renderPanelSheet: false, backdropEnabled: true, color: Colors.transparent, borderRadius: BorderRadius.circular(8), collapsed: MiniPlayer( panelController: controller, ), minHeight: 56, maxHeight: context.height, panel: position > 0 ? FullScreenPlayer( panelController: controller, ) : const SizedBox.shrink(), onPanelSlide: (pos) { positionState.value = pos; if (pos > 0) { FocusScope.of(context).unfocus(); } }, ),

Inside the SlidingUpPanel

IconButton( onPressed: () { showBarModalBottomSheet( isDismissible: true, expand: false, context: context, backgroundColor: Colors.transparent, builder: (context) => PlayerTileMenu( panelController: widget.panelController, track: track!, ), ); }, icon: const Icon(Icons.more_vert)),

how can i fix it ? I tried passing the parent context but that didn't work too

@max-anders
Copy link
Author

max-anders commented Jul 31, 2024

I discovered that my modal sheet was overlaying a floating action button nested in one of the widgets and adding a UniqueKey() to the hero tag solved the problem, I don't know if this is the intended behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant