@@ -25,12 +25,15 @@ class StatusLine extends StatelessWidget {
2525 super .key,
2626 required this .currentScreen,
2727 required this .isEmbedded,
28- required bool isConnected,
28+ required this . isConnected,
2929 }) : highlightForConnection = isConnected && ! isEmbedded;
3030
3131 final Screen currentScreen;
32+
3233 final bool isEmbedded;
3334
35+ final bool isConnected;
36+
3437 /// Whether to highlight the footer when DevTools is connected to an app.
3538 final bool highlightForConnection;
3639
@@ -45,16 +48,20 @@ class StatusLine extends StatelessWidget {
4548 @override
4649 Widget build (BuildContext context) {
4750 final theme = Theme .of (context);
48- final color = highlightForConnection ? theme.colorScheme.onPrimary : null ;
51+ final backgroundColor =
52+ highlightForConnection ? theme.colorScheme.primary : null ;
53+ final foregroundColor =
54+ highlightForConnection ? theme.colorScheme.onPrimary : null ;
4955 final height = statusLineHeight + padding.top + padding.bottom;
5056 return ValueListenableBuilder <bool >(
5157 valueListenable: currentScreen.showIsolateSelector,
5258 builder: (context, showIsolateSelector, _) {
59+ showIsolateSelector = showIsolateSelector && isConnected;
5360 return DefaultTextStyle .merge (
54- style: TextStyle (color: color ),
61+ style: TextStyle (color: foregroundColor ),
5562 child: Container (
5663 decoration: BoxDecoration (
57- color: highlightForConnection ? theme.colorScheme.primary : null ,
64+ color: backgroundColor ,
5865 border: Border (
5966 top: Divider .createBorderSide (context, width: 1.0 ),
6067 ),
0 commit comments