im trying to trigger an error with textformfield validate.i can trigger only a text but i need to add a icon too. its working;
validate: (value) {
if (value == null || value.isEmpty) {
return 'Please enter your email address';
} else if (isValid == false) {
return "❗Please enter a valid email address.";
}
but i need do add a svg icon. when i return svg icon and text in a row, app is crashing. how can i return a svg and text in here? thanks all