@@ -2179,26 +2179,32 @@ class FlexColorScheme with Diagnosticable {
2179
2179
? const IconThemeData (color: Colors .white)
2180
2180
: const IconThemeData (color: Colors .black87),
2181
2181
elevation: appBarElevation,
2182
- // TODO: Trying to use AppBarTheme overlay style here to style sysnav.
2183
2182
systemOverlayStyle: SystemUiOverlayStyle (
2184
2183
// AppBar overlay style.
2185
2184
statusBarColor: transparentStatusBar
2186
2185
? Colors .transparent
2186
+ // This is the actual scrim color used by Android by default,
2187
+ // here we just re-apply if false or if it had been removed
2188
+ // earlier, using `null` does not restore we need the actual used
2189
+ // scrim by Android ro restore if it has been removed earlier.
2187
2190
: const Color (0x40000000 ),
2188
2191
statusBarBrightness: _appBarBrightness,
2189
2192
statusBarIconBrightness: _appBarBrightness == Brightness .dark
2190
2193
? Brightness .light
2191
2194
: Brightness .dark,
2192
- // System navbar overlay - The one used by default AppBar in SDK:
2195
+
2196
+ // The systemNavigationBarColor used by default AppBar in SDK:
2193
2197
systemNavigationBarColor: const Color (0xFF000000 ),
2194
2198
// Would be nice if this worked instead of above, but it does not:
2195
2199
// systemNavigationBarColor: _isDark ? Colors.black : Colors.white;,
2196
- // System navbar overlay - The one used by default AppBar in SDK:
2200
+
2201
+ // The systemNavigationBarIconBrightness used by the AppBar in SDK:
2197
2202
systemNavigationBarIconBrightness: Brightness .dark,
2198
2203
// Would be nice if this worked instead of above, but it does not:
2199
2204
// systemNavigationBarIconBrightness:
2200
2205
// _isDark ? Brightness.light : Brightness.dark,
2201
- // System navbar overlay - The one used by default AppBar in SDK:
2206
+
2207
+ // The systemNavigationBarDividerColor used by default AppBar in SDK:
2202
2208
// ignore: avoid_redundant_argument_values
2203
2209
systemNavigationBarDividerColor: null ,
2204
2210
),
0 commit comments