Home > Enterprise >  Styling messes up after pushing navigator to page
Styling messes up after pushing navigator to page

Time:11-13

When I push my navigator to any new page, the styling is completely messed up. Font is bigger than my future, red and yellow underlined??? enter image description here

Why is this happening? I am using macOS/Desktop, I don't know if that matters.

Thanks.

When I add my page (widget) into another page, it works fine.

CodePudding user response:

Oh, it's highly likely you are missing a material parent widget (like a Scaffold). Though, this is not 100% sure.

Can you edit your question to add more details? I'll update my answer.

CodePudding user response:

you need a Scaffold widget when pushing a new route in order to get things proper as you expect, wrap the DesktopAccountPage_Subpage with a Scaffold widget:

Scaffold(body: DesktopAccountPage_Subpage(...)),
  • Related