1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-26 04:48:51 +00:00

Better conditions

This commit is contained in:
Pierre HUBERT 2020-04-27 13:29:11 +02:00
parent da38ce426f
commit 2109c71dd6

View File

@ -35,8 +35,8 @@ class __InputURLDialogState extends State<SingleInputDialog> {
TextEditingController _controller;
bool get _isValid =>
(_controller.text.isNotEmpty || widget.canBeEmpty) &&
widget.checkInput(_controller.text);
(_controller.text.isEmpty && widget.canBeEmpty) ||
(_controller.text.isNotEmpty && widget.checkInput(_controller.text));
@override
void initState() {