Add unimplemented message to check interval option

This commit is contained in:
Nutcake 2023-05-05 18:36:36 +02:00
parent 7b871cfa9e
commit 4dbfa5df58

View file

@ -43,6 +43,7 @@ class SettingsPage extends StatelessWidget {
items: _intervalSelections.keys.map((e) => DropdownMenuItem<int>(value: e, child: Text("${_intervalSelections[e]}"))).toList(), items: _intervalSelections.keys.map((e) => DropdownMenuItem<int>(value: e, child: Text("${_intervalSelections[e]}"))).toList(),
value: sClient.currentSettings.unreadCheckIntervalMinutes.valueOrDefault, value: sClient.currentSettings.unreadCheckIntervalMinutes.valueOrDefault,
onChanged: (int? value) async { onChanged: (int? value) async {
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text("Sorry, this feature is not yet implemented.")));
await sClient.changeSettings(sClient.currentSettings.copyWith(unreadCheckIntervalMinutes: value)); await sClient.changeSettings(sClient.currentSettings.copyWith(unreadCheckIntervalMinutes: value));
setState(() {}); setState(() {});
}, },
@ -50,8 +51,6 @@ class SettingsPage extends StatelessWidget {
} }
), ),
title: const Text("Check Interval"), title: const Text("Check Interval"),
onTap: () {
},
), ),
const ListSectionHeader(name: "Other"), const ListSectionHeader(name: "Other"),
ListTile( ListTile(