mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-02 06:16:16 -04:00
more refactor
This commit is contained in:
parent
ba4ef05a28
commit
b83aa3a64b
39 changed files with 722 additions and 514 deletions
9
lib/settings/preferences_cubit.dart
Normal file
9
lib/settings/preferences_cubit.dart
Normal file
|
@ -0,0 +1,9 @@
|
|||
import '../tools/tools.dart';
|
||||
import 'settings.dart';
|
||||
|
||||
xxx convert to non-asyncvalue based wrapper since there's always a default here
|
||||
|
||||
class PreferencesCubit extends StreamWrapperCubit<Preferences> {
|
||||
PreferencesCubit(PreferencesRepository repository)
|
||||
: super(repository.stream, defaultState: repository.value);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue