Add a small doc suggesting usage pattern for setSystemUIOverlayStyle (#11558)

This commit is contained in:
xster 2017-08-09 12:27:11 -07:00 committed by GitHub
parent 13dda7cf80
commit 2877dda572

View file

@ -152,6 +152,10 @@ class SystemChrome {
/// overwrite the pending value, such that only the last specified value takes
/// effect.
///
/// Call this API in code whose lifecyle matches that of the desired
/// system UI styles. For instance, to change the system UI style on a new
/// page, consider calling when pushing/popping a new [PageRoute].
///
/// If a particular style is not supported on the platform, selecting it will
/// have no effect.
static void setSystemUIOverlayStyle(SystemUiOverlayStyle style) {