mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 06:49:22 +00:00
Better conditions
This commit is contained in:
parent
da38ce426f
commit
2109c71dd6
@ -35,8 +35,8 @@ class __InputURLDialogState extends State<SingleInputDialog> {
|
|||||||
TextEditingController _controller;
|
TextEditingController _controller;
|
||||||
|
|
||||||
bool get _isValid =>
|
bool get _isValid =>
|
||||||
(_controller.text.isNotEmpty || widget.canBeEmpty) &&
|
(_controller.text.isEmpty && widget.canBeEmpty) ||
|
||||||
widget.checkInput(_controller.text);
|
(_controller.text.isNotEmpty && widget.checkInput(_controller.text));
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
|
Loading…
Reference in New Issue
Block a user