flutter disable button if textfield is empty code example Example: empty a textfield after submit flutter TextEditingController.clear()