Commit 2877dda5 authored by xster's avatar xster Committed by GitHub

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

parent 13dda7cf
......@@ -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) {
......
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