mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 04:48:51 +00:00
Better conditions
This commit is contained in:
parent
da38ce426f
commit
2109c71dd6
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user