Remove unused _ConnectionIndicator and _StatusDot widgets

Delete dead code that triggered an unused_element analyzer warning.
_ConnectionIndicator was unreferenced and _StatusDot was only used by it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka
2026-06-17 22:55:42 +08:00
parent 491513fc5e
commit 3f166c2efa

View File

@@ -1171,66 +1171,6 @@ class _ConnectionSummary extends StatelessWidget {
} }
} }
class _ConnectionIndicator extends StatelessWidget {
const _ConnectionIndicator({
required this.connected,
required this.connecting,
required this.animation,
});
final bool connected;
final bool connecting;
final Animation<double> animation;
@override
Widget build(BuildContext context) {
final color = connected
? const Color(0xFF16A34A)
: connecting
? Theme.of(context).colorScheme.primary
: const Color(0xFFDC2626);
return AnimatedBuilder(
animation: animation,
builder: (context, child) {
return _StatusDot(
color: color,
scale: connected || connecting ? animation.value : 1,
);
},
);
}
}
class _StatusDot extends StatelessWidget {
const _StatusDot({required this.color, required this.scale});
final Color color;
final double scale;
@override
Widget build(BuildContext context) {
return Transform.scale(
scale: scale,
child: Container(
width: 12,
height: 12,
decoration: BoxDecoration(
color: color,
shape: BoxShape.circle,
boxShadow: [
BoxShadow(
color: color.withValues(alpha: 0.24),
blurRadius: 8,
spreadRadius: 2,
),
],
),
),
);
}
}
class _FooterToggle extends StatelessWidget { class _FooterToggle extends StatelessWidget {
const _FooterToggle({ const _FooterToggle({
required this.label, required this.label,