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:
@@ -859,7 +859,6 @@ class _PrimaryBtn extends StatelessWidget {
|
||||
final VoidCallback? onPressed;
|
||||
final PyramidTheme pt;
|
||||
final bool loading;
|
||||
final bool destructive;
|
||||
|
||||
const _PrimaryBtn({
|
||||
required this.label,
|
||||
@@ -867,13 +866,12 @@ class _PrimaryBtn extends StatelessWidget {
|
||||
this.icon,
|
||||
this.onPressed,
|
||||
this.loading = false,
|
||||
this.destructive = false,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final bg = destructive ? pt.danger : pt.accent;
|
||||
final fg = destructive ? Colors.white : pt.accentFg;
|
||||
final bg = pt.accent;
|
||||
final fg = pt.accentFg;
|
||||
return ElevatedButton.icon(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: bg,
|
||||
@@ -3626,7 +3624,6 @@ class _EncryptionSectionState extends ConsumerState<_EncryptionSection> {
|
||||
try {
|
||||
final client = await ref.read(matrixClientProvider.future);
|
||||
final db = client.database;
|
||||
if (db == null) throw Exception('Datenbank nicht verfügbar.');
|
||||
|
||||
final stored = await db.getAllInboundGroupSessions();
|
||||
final sessions = <Map<String, dynamic>>[];
|
||||
|
||||
Reference in New Issue
Block a user