Document that you can call runApp again (#9526)
This is such a fundamental property of the system that we forgot to document it. Fixes #6818
This commit is contained in:
parent
37fafeecb1
commit
31b1964a23
@ -410,6 +410,12 @@ abstract class WidgetsBinding extends BindingBase implements GestureBinding, Ren
|
|||||||
/// (e.g., the top), consider using the [Align] widget. If you wish to center
|
/// (e.g., the top), consider using the [Align] widget. If you wish to center
|
||||||
/// your widget, you can also use the [Center] widget
|
/// your widget, you can also use the [Center] widget
|
||||||
///
|
///
|
||||||
|
/// Calling [runApp] again will detach the previous root widget from the screen
|
||||||
|
/// and attach the given widget in its place. The new widget tree is compared
|
||||||
|
/// against the previous widget tree and any differences are applied to the
|
||||||
|
/// underlying render tree, similar to what happens when a [StatefulWidget]
|
||||||
|
/// rebuilds after calling [State.setState].
|
||||||
|
///
|
||||||
/// Initializes the binding using [WidgetsFlutterBinding] if necessary.
|
/// Initializes the binding using [WidgetsFlutterBinding] if necessary.
|
||||||
///
|
///
|
||||||
/// See also:
|
/// See also:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user