Unverified Commit 2de1c8da authored by Madhur Maurya's avatar Madhur Maurya Committed by GitHub

Nested Scaffolds Documentation Improvement (#66972)

parent 36fca52c
...@@ -964,13 +964,17 @@ class _FloatingActionButtonTransitionState extends State<_FloatingActionButtonTr ...@@ -964,13 +964,17 @@ class _FloatingActionButtonTransitionState extends State<_FloatingActionButtonTr
/// ///
/// ### Nested Scaffolds /// ### Nested Scaffolds
/// ///
/// The Scaffold was designed to be the single top level container for /// The Scaffold is designed to be a top level container for
/// a [MaterialApp] and it's typically not necessary to nest /// a [MaterialApp]. This means that adding a Scaffold
/// scaffolds. For example in a tabbed UI, where the /// to each route on a Material app will provide the app with
/// [bottomNavigationBar] is a [TabBar] and the body is a /// Material's basic visual layout structure.
/// [TabBarView], you might be tempted to make each tab bar view a ///
/// scaffold with a differently titled AppBar. It would be better to add a /// It is typically not necessary to nest Scaffolds. For example, in a
/// listener to the [TabController] that updates the AppBar. /// tabbed UI, where the [bottomNavigationBar] is a [TabBar]
/// and the body is a [TabBarView], you might be tempted to make each tab bar
/// view a scaffold with a differently titled AppBar. Rather, it would be
/// better to add a listener to the [TabController] that updates the
/// AppBar
/// ///
/// {@tool snippet} /// {@tool snippet}
/// Add a listener to the app's tab controller so that the [AppBar] title of the /// Add a listener to the app's tab controller so that the [AppBar] title of the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment