Member-only story
Top Missing Class From The Flutter Adaptive Scaffold Package
The top requested thing from Flutter devs is how to do canonical layouts using the flutter adaptive scaffold and handling android foldables. So since I have time, why not me build the demos and the docs on canonical layouts!
This article covers some software engineering pre-work towards the canonical layouts in detailing the FoldObserver class you need to have the flutter adaptive scaffold package and other components form the canonical layouts.
Why Do We Need A FoldObserver?
Now, let me show you the usage of the adaptive layout class from the Flutter Adaptive Scaffold package in the implemented AdaptiveScaffold class:
Now, let’s go down to the smallSecondBody and secondBody slots, this is from the body slot of the wrapping Scaffold widget: