diff --git a/packages/stream_chat_v1/lib/advanced_options_page.dart b/packages/stream_chat_v1/lib/advanced_options_page.dart index ed5e1b5..a654f3d 100644 --- a/packages/stream_chat_v1/lib/advanced_options_page.dart +++ b/packages/stream_chat_v1/lib/advanced_options_page.dart @@ -75,7 +75,8 @@ class _AdvancedOptionsPageState extends State { validator: (value) { if (value.isEmpty) { setState(() { - _apiKeyError = 'Please enter the Chat API Key'; + _apiKeyError = + 'Please enter the Chat API Key'.toUpperCase(); }); return _apiKeyError; } @@ -101,8 +102,9 @@ class _AdvancedOptionsPageState extends State { fillColor: StreamChatTheme.of(context).colorTheme.whiteSmoke, filled: true, - labelText: - 'Chat API Key ${_apiKeyError != null ? ': $_apiKeyError' : ''}', + labelText: _apiKeyError != null + ? 'CHAT API KEY: $_apiKeyError' + : 'Chat API Key', ), textInputAction: TextInputAction.next, ), @@ -119,7 +121,8 @@ class _AdvancedOptionsPageState extends State { validator: (value) { if (value.isEmpty) { setState(() { - _userIdError = 'Please enter the User ID'; + _userIdError = + 'Please enter the User ID'.toUpperCase(); }); return _userIdError; } @@ -146,8 +149,9 @@ class _AdvancedOptionsPageState extends State { fillColor: StreamChatTheme.of(context).colorTheme.whiteSmoke, filled: true, - labelText: - 'User ID ${_userIdError != null ? ': $_userIdError' : ''}', + labelText: _userIdError != null + ? 'USER ID: $_userIdError' + : 'User ID', ), ), SizedBox(height: 8), @@ -163,7 +167,8 @@ class _AdvancedOptionsPageState extends State { validator: (value) { if (value.isEmpty) { setState(() { - _userTokenError = 'Please enter the user token'; + _userTokenError = + 'Please enter the user token'.toUpperCase(); }); return _userTokenError; } @@ -190,8 +195,9 @@ class _AdvancedOptionsPageState extends State { fillColor: StreamChatTheme.of(context).colorTheme.whiteSmoke, filled: true, - labelText: - 'User Token ${_userTokenError != null ? ': $_userTokenError' : ''}', + labelText: _userTokenError != null + ? 'USER TOKEN: $_userTokenError' + : 'User Token', ), ), SizedBox(height: 8), @@ -300,7 +306,7 @@ class _AdvancedOptionsPageState extends State { } Navigator.pop(context); setState(() { - _apiKeyError = errorText; + _apiKeyError = errorText.toUpperCase(); }); loading = false; await client.disconnect(); diff --git a/packages/stream_chat_v1/lib/main.dart b/packages/stream_chat_v1/lib/main.dart index 2fb2cf8..0b219a1 100644 --- a/packages/stream_chat_v1/lib/main.dart +++ b/packages/stream_chat_v1/lib/main.dart @@ -932,6 +932,7 @@ class _ChannelPageState extends State { ), MessageInput( focusNode: _focusNode, + actionsLocation: ActionsLocation.rightInside, quotedMessage: _quotedMessage, onQuotedMessageCleared: () { setState(() => _quotedMessage = null);