Overlay box when validation occur at the end of textform field in flutter
170
Try below code using Tooltip Widget hope its help to you refer Tooltip Widget here
TextFormField(
textCapitalization: TextCapitalization.sentences,
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: 'Name',
hintText: 'Card Holder Name',
suffixIcon: Tooltip(
message: 'Required',
child: Icon(
Icons.info,
),
),
),
),
Author by
User
Updated on December 31, 2022Comments
-
User over 1 year
I want to show a validation message in a overlay box at the nearest of textformfield . Can you help me? I want like this.
-
Yeasin Sheikh over 2 yearsCan you include your code snippet?
-
-
User over 2 yearsThank you. I solved this solution by custom tooltip by using overlay.
-
User over 2 yearsIt is the correct way. But I want like that image.
-
sulli110 about 2 years@User can you post your code snippet to show how you used custom tool tip by using overlay
-
Ravindra S. Patil about 2 years@sulli110 try to test my answer code