Skip to content

Commit

Permalink
Add username by default
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Aug 12, 2023
1 parent af4b63b commit f9c31a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions example/lib/src/common/constant/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ abstract final class Config {
static const String centrifugeChannel =
String.fromEnvironment('CENTRIFUGE_CHANNEL');

/// Username by default.
static const String centrifugeUsername =
String.fromEnvironment('CENTRIFUGE_USERNAME');
// --- Layout --- //

/// Maximum screen layout width for screen with list view.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ class _SignInFormState extends State<_SignInForm> {
_tokenController = TextEditingController(text: Config.centrifugeToken),
_channelController =
TextEditingController(text: Config.centrifugeChannel),
_usernameController = TextEditingController(),
_usernameController =
TextEditingController(text: Config.centrifugeUsername),
_secretController = TextEditingController();

final FocusNode _endpointFocusNode = FocusNode(),
Expand Down

0 comments on commit f9c31a7

Please sign in to comment.