fix error capitalization
This commit is contained in:
@@ -75,7 +75,8 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
|
|||||||
validator: (value) {
|
validator: (value) {
|
||||||
if (value.isEmpty) {
|
if (value.isEmpty) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_apiKeyError = 'Please enter the Chat API Key';
|
_apiKeyError =
|
||||||
|
'Please enter the Chat API Key'.toUpperCase();
|
||||||
});
|
});
|
||||||
return _apiKeyError;
|
return _apiKeyError;
|
||||||
}
|
}
|
||||||
@@ -101,8 +102,9 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
|
|||||||
fillColor:
|
fillColor:
|
||||||
StreamChatTheme.of(context).colorTheme.whiteSmoke,
|
StreamChatTheme.of(context).colorTheme.whiteSmoke,
|
||||||
filled: true,
|
filled: true,
|
||||||
labelText:
|
labelText: _apiKeyError != null
|
||||||
'Chat API Key ${_apiKeyError != null ? ': $_apiKeyError' : ''}',
|
? 'CHAT API KEY: $_apiKeyError'
|
||||||
|
: 'Chat API Key',
|
||||||
),
|
),
|
||||||
textInputAction: TextInputAction.next,
|
textInputAction: TextInputAction.next,
|
||||||
),
|
),
|
||||||
@@ -119,7 +121,8 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
|
|||||||
validator: (value) {
|
validator: (value) {
|
||||||
if (value.isEmpty) {
|
if (value.isEmpty) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_userIdError = 'Please enter the User ID';
|
_userIdError =
|
||||||
|
'Please enter the User ID'.toUpperCase();
|
||||||
});
|
});
|
||||||
return _userIdError;
|
return _userIdError;
|
||||||
}
|
}
|
||||||
@@ -146,8 +149,9 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
|
|||||||
fillColor:
|
fillColor:
|
||||||
StreamChatTheme.of(context).colorTheme.whiteSmoke,
|
StreamChatTheme.of(context).colorTheme.whiteSmoke,
|
||||||
filled: true,
|
filled: true,
|
||||||
labelText:
|
labelText: _userIdError != null
|
||||||
'User ID ${_userIdError != null ? ': $_userIdError' : ''}',
|
? 'USER ID: $_userIdError'
|
||||||
|
: 'User ID',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 8),
|
SizedBox(height: 8),
|
||||||
@@ -163,7 +167,8 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
|
|||||||
validator: (value) {
|
validator: (value) {
|
||||||
if (value.isEmpty) {
|
if (value.isEmpty) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_userTokenError = 'Please enter the user token';
|
_userTokenError =
|
||||||
|
'Please enter the user token'.toUpperCase();
|
||||||
});
|
});
|
||||||
return _userTokenError;
|
return _userTokenError;
|
||||||
}
|
}
|
||||||
@@ -190,8 +195,9 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
|
|||||||
fillColor:
|
fillColor:
|
||||||
StreamChatTheme.of(context).colorTheme.whiteSmoke,
|
StreamChatTheme.of(context).colorTheme.whiteSmoke,
|
||||||
filled: true,
|
filled: true,
|
||||||
labelText:
|
labelText: _userTokenError != null
|
||||||
'User Token ${_userTokenError != null ? ': $_userTokenError' : ''}',
|
? 'USER TOKEN: $_userTokenError'
|
||||||
|
: 'User Token',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 8),
|
SizedBox(height: 8),
|
||||||
@@ -300,7 +306,7 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
|
|||||||
}
|
}
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
setState(() {
|
setState(() {
|
||||||
_apiKeyError = errorText;
|
_apiKeyError = errorText.toUpperCase();
|
||||||
});
|
});
|
||||||
loading = false;
|
loading = false;
|
||||||
await client.disconnect();
|
await client.disconnect();
|
||||||
|
|||||||
@@ -932,6 +932,7 @@ class _ChannelPageState extends State<ChannelPage> {
|
|||||||
),
|
),
|
||||||
MessageInput(
|
MessageInput(
|
||||||
focusNode: _focusNode,
|
focusNode: _focusNode,
|
||||||
|
actionsLocation: ActionsLocation.rightInside,
|
||||||
quotedMessage: _quotedMessage,
|
quotedMessage: _quotedMessage,
|
||||||
onQuotedMessageCleared: () {
|
onQuotedMessageCleared: () {
|
||||||
setState(() => _quotedMessage = null);
|
setState(() => _quotedMessage = null);
|
||||||
|
|||||||
Reference in New Issue
Block a user