fluttercommunity / responsive_scaffold

Responsive Scaffold - On mobile it shows a list and pushes to details and on tablet it shows the List and the selected item. Maintainer: @rodydavis
https://fluttercommunity.github.io/responsive_scaffold/
MIT License
362 stars 42 forks source link

Unable to use ResponsiveScaffold when not the first screen #17

Open awhitford opened 4 years ago

awhitford commented 4 years ago

My first ResponsiveScaffold was for the Home Screen, so I did not notice this deficiency right away. However, my next ResponsiveScaffold was for a secondary screen, and now I can't go back to the home screen because there is no Back action because automaticallyImplyLeading is hard-coded to be false:

https://github.com/fluttercommunity/responsive_scaffold/blob/e95fb7034b0d9e06a52a5bca32bf19f8a53f3960/lib/templates/layout/scaffold.dart#L64

🤔 Why is it hard coded to be false? (Why not just let it default to be true?)

Alternatively (and maybe better), can this setting please be controlled by Responsive Scaffold?

awhitford commented 4 years ago

So I noticed that the back button disappears when your Scaffold has a Drawer. Are those ideas really mutually exclusive? 🤔