@@ -72,7 +72,7 @@ class ApplicationSwitcherDescription {
72
72
73
73
/// Specifies a system overlay at a particular location.
74
74
///
75
- /// Used by [SystemChrome.setEnabledSystemUIOverlays ] .
75
+ /// Used by [SystemChrome.setEnabledSystemUIMode ] .
76
76
enum SystemUiOverlay {
77
77
/// The status bar provided by the embedder on the top of the application
78
78
/// surface, if any.
@@ -400,36 +400,6 @@ class SystemChrome {
400
400
);
401
401
}
402
402
403
- /// Specifies the set of system overlays to have visible when the application
404
- /// is running.
405
- ///
406
- /// The `overlays` argument is a list of [SystemUiOverlay] enum values
407
- /// denoting the overlays to show.
408
- ///
409
- /// If a particular overlay is unsupported on the platform, enabling or
410
- /// disabling that overlay will be ignored.
411
- ///
412
- /// The settings here can be overridden by the platform when System UI becomes
413
- /// necessary for functionality.
414
- ///
415
- /// For example, on Android, when the keyboard becomes visible, it will enable the
416
- /// navigation bar and status bar system UI overlays. When the keyboard is closed,
417
- /// Android will not restore the previous UI visibility settings, and the UI
418
- /// visibility cannot be changed until 1 second after the keyboard is closed to
419
- /// prevent malware locking users from navigation buttons.
420
- ///
421
- /// To regain "fullscreen" after text entry, the UI overlays should be set again
422
- /// after a delay of 1 second. This can be achieved through [restoreSystemUIOverlays]
423
- /// or calling this again. Otherwise, the original UI overlay settings will be
424
- /// automatically restored only when the application loses and regains focus.
425
- @Deprecated (
426
- 'Migrate to setEnabledSystemUIMode. '
427
- 'This feature was deprecated after v2.3.0-17.0.pre.'
428
- )
429
- static Future <void > setEnabledSystemUIOverlays (List <SystemUiOverlay > overlays) async {
430
- await setEnabledSystemUIMode (SystemUiMode .manual, overlays: overlays);
431
- }
432
-
433
403
/// Specifies the [SystemUiMode] to have visible when the application
434
404
/// is running.
435
405
///
@@ -508,7 +478,7 @@ class SystemChrome {
508
478
}
509
479
510
480
/// Restores the system overlays to the last settings provided via
511
- /// [setEnabledSystemUIOverlays ] . May be used when the platform force enables/disables
481
+ /// [setEnabledSystemUIMode ] . May be used when the platform force enables/disables
512
482
/// UI elements.
513
483
///
514
484
/// For example, when the Android keyboard disables hidden status and navigation bars,
0 commit comments