mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-09 12:39:29 +00:00
Refactor onboarding to single page
bottom navigation bar
This commit is contained in:
parent
d9345cad2b
commit
5e152a0baf
10 changed files with 285 additions and 101 deletions
|
|
@ -23,7 +23,14 @@ class ApiSettings extends _$ApiSettings {
|
|||
model.ApiSettings readFromBoxOrCreate() {
|
||||
// see if the settings are already in the box
|
||||
if (_box.isNotEmpty) {
|
||||
final foundSettings = _box.getAt(0);
|
||||
var foundSettings = _box.getAt(0);
|
||||
// foundSettings.activeServer ??= foundSettings.activeUser?.server;
|
||||
// foundSettings =foundSettings.copyWith(activeServer: foundSettings.activeUser?.server);
|
||||
if (foundSettings.activeServer == null) {
|
||||
foundSettings = foundSettings.copyWith(
|
||||
activeServer: foundSettings.activeUser?.server,
|
||||
);
|
||||
}
|
||||
debugPrint('found api settings in box: $foundSettings');
|
||||
return foundSettings;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue