Fix all dart analyze warnings in the Flutter frontend

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-27 13:57:03 -04:00
co-authored by Claude Sonnet 4.6
parent cb2b3c6af7
commit f34dfe8386
5 changed files with 34 additions and 30 deletions
+5 -3
View File
@@ -12,7 +12,7 @@ class Settings extends StatefulWidget {
const Settings({super.key});
@override
_SettingsState createState() => _SettingsState();
State<Settings> createState() => _SettingsState();
}
class _SettingsState extends State<Settings> {
@@ -125,7 +125,7 @@ class _SettingsState extends State<Settings> {
SizedBox(height: 16),
// Theme selector
DropdownButtonFormField<String>(
value: _selectedTheme,
initialValue: _selectedTheme,
decoration: const InputDecoration(
border: UnderlineInputBorder(),
labelText: 'Theme',
@@ -162,10 +162,12 @@ class _SettingsState extends State<Settings> {
_apiKeyController.text,
);
if (!context.mounted) return;
setState(() {
_testOk = testResult == null;
if (testResult == null)
if (testResult == null) {
_connectionModified = false;
}
});
if (testResult == null) {