Fred’s Flutter Newsletter

Fred’s Flutter Newsletter

State In The Adaptive Scaffold

What Are Flutter Hooks Good For

Fred Grott's avatar
Fred Grott
Apr 27, 2025
∙ Paid
1
Share

A particular problem ins implementing an adaptive scaffold is how to keep track of state in the form of the router changing. Sure you could try to use index-stack but that then messes up transitions if using the GoRouter Stateful Navigation Shell.

RydMike's Flex Scaffold uses a different approach of using a State Notifier to keep track of state of the Router. But how do we provide it to a stateful builder as its a non standard listener that is not using the SDK system of listeners.

We can do that via Hooks and Flutter Hooks using the Hooks API.

Share

Keep reading with a 7-day free trial

Subscribe to Fred’s Flutter Newsletter to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Fred Grott
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture