fix: flutter analyze Warnings beheben (totes/unerreichbares Code)
Entfernt tatsächlich toten Code, den flutter analyze als Warning markiert hatte: unbenutzte Felder/Parameter (_saved, _hovered wird jetzt für Hover- Feedback genutzt, destructive-Flag ohne Aufrufer, size-Parameter ohne Override), unerreichbaren dead_code (Room.topic/Space.topic sind laut SDK nie null, client.database ist nie null) sowie Legacy-Funktionen aus der alten Push-Architektur (_showNotif/_fetchTitle, ersetzt durch natives PushService.kt) und einen leeren Noise-Suppression-Stub ohne Aufrufer. Keine funktionale Verhaltensänderung an aktiven Code-Pfaden. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -333,7 +333,9 @@ class _ControlBtnState extends State<_ControlBtn> {
|
||||
duration: pt.durationFast,
|
||||
height: 32,
|
||||
decoration: BoxDecoration(
|
||||
color: widget.active ? (widget.danger ? pt.danger : pt.accent) : pt.bg3,
|
||||
color: widget.active
|
||||
? (widget.danger ? pt.danger : pt.accent)
|
||||
: (_hovered ? pt.bgHover : pt.bg3),
|
||||
borderRadius: BorderRadius.circular(pt.rSm),
|
||||
),
|
||||
child: Icon(
|
||||
|
||||
@@ -132,16 +132,16 @@ class _ProfileRow extends StatelessWidget {
|
||||
}
|
||||
|
||||
class _InitialAvatar extends StatelessWidget {
|
||||
static const double _size = 32;
|
||||
final String name;
|
||||
final double radius;
|
||||
final double size;
|
||||
const _InitialAvatar({required this.name, required this.radius, this.size = 32});
|
||||
const _InitialAvatar({required this.name, required this.radius});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
width: size,
|
||||
height: size,
|
||||
width: _size,
|
||||
height: _size,
|
||||
decoration: BoxDecoration(
|
||||
gradient: const LinearGradient(
|
||||
begin: Alignment.topLeft,
|
||||
@@ -155,7 +155,7 @@ class _InitialAvatar extends StatelessWidget {
|
||||
name.isNotEmpty ? name[0].toUpperCase() : '?',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: size * 0.44,
|
||||
fontSize: _size * 0.44,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user