forked from Nexus/nexus
Remove flutter chat (#26)
Had to squash merge manually as Forgejo was erroring
This commit is contained in:
parent
bd1d5ea745
commit
16cf126df4
111 changed files with 3162 additions and 2366 deletions
|
|
@ -12,14 +12,14 @@ class KeyController extends Notifier<String?> {
|
|||
String? build() =>
|
||||
ref.watch(SharedPrefsController.provider).requireValue.getString(key);
|
||||
|
||||
Future<void> set(String? id) async {
|
||||
Future<void> set(String? value) async {
|
||||
final prefs = ref.watch(SharedPrefsController.provider).requireValue;
|
||||
state = id;
|
||||
state = value;
|
||||
|
||||
if (id == null) {
|
||||
if (value == null) {
|
||||
prefs.remove(key);
|
||||
} else {
|
||||
prefs.setString(key, id);
|
||||
prefs.setString(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue