forked from cwtch.im/cwtch-ui
Merge pull request 'dont show placeholder when contact offline' (#118) from erinn23 into trunk
Reviewed-on: cwtch.im/cwtch-ui#118
This commit is contained in:
commit
79abd45a83
|
@ -192,7 +192,7 @@ class _MessageViewState extends State<MessageView> {
|
|||
onFieldSubmitted: _sendMessage,
|
||||
enabled: !isOffline,
|
||||
decoration: InputDecoration(
|
||||
hintText: AppLocalizations.of(context)!.placeholderEnterMessage,
|
||||
hintText: isOffline ? "" : AppLocalizations.of(context)!.placeholderEnterMessage,
|
||||
hintStyle: TextStyle(color: Provider.of<Settings>(context).theme.altTextColor()),
|
||||
enabledBorder: InputBorder.none,
|
||||
focusedBorder: InputBorder.none,
|
||||
|
|
Loading…
Reference in New Issue