-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: user can select atsign if available in keychain when onboarding.
- Loading branch information
1 parent
a4f738f
commit e6522b0
Showing
8 changed files
with
92 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
packages/dart/npt_flutter/lib/features/onboarding/cubit/at_directory_cubit.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import 'package:npt_flutter/features/logging/models/loggable.dart'; | ||
import 'package:npt_flutter/features/logging/models/logging_bloc.dart'; | ||
import 'package:npt_flutter/features/onboarding/util/atsign_manager.dart'; | ||
|
||
class AtDirectoryCubit extends LoggingCubit<LoggableString> { | ||
AtDirectoryCubit() : super(const LoggableString('root.atsign.org')); | ||
class AtDirectoryCubit extends LoggingCubit<AtsignInformation> { | ||
AtDirectoryCubit() : super(const AtsignInformation(atSign: '', rootDomain: 'root.atsign.org')); | ||
|
||
void setRootDomain(String rootDomain) => emit(LoggableString(rootDomain)); | ||
String getRootDomain() => (state.string); | ||
void setRootDomain(String rootDomain) => emit(AtsignInformation(atSign: state.atSign, rootDomain: rootDomain)); | ||
String getRootDomain() => (state.rootDomain); | ||
|
||
void setAtSign(String atSign) => emit(AtsignInformation(atSign: atSign, rootDomain: state.rootDomain)); | ||
String getAtSign() => (state.atSign); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters