Want to turn off warning/error bars on APK build? That is because Hero transition is done trough Overlay, which is rendered outside of Scaffold or other Material widgets.
The problem ? It means during transition, there’s no widget that introduce a valid Theme (Scaffold, Dialog, Material do for example). So it fallback to a default Theme. And that Theme has yellow underline with a big font.
The solution : Wrap your Hero child into a widget introducing Theme or in Theme itself.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.