May i ask on how can i code a statement and condition to let flutter know that the fifth option on list.generate is selected?
List<Answerlist> usingCollection = [
Answerlist('excellent', 'Excellent'),
Answerlist('verygood', 'Very Good'),
Answerlist('good', 'Good'),
Answerlist('fair', 'Fair'),
Answerlist('poor', 'Poor'),
];
list.generate(usingcollection.length,(int index)
{
return GestureDetector
(onTapUp: (detail)
{
if(Answerlist == //5th index is selected)
{
statustype = 'Poor'
}
}
}
Then on the Hero Code on flutter which is on the same dart file,, not two dart file
if (widget.statusType == 'Poor') {
imgPath = 'images/sad.gif';
msg = 'We are so sorry. What we did wrong?';
feedbackList = [
Feedback('Not helpful and not thoughful', false),
Feedback('Slow and not responsive', false),
Feedback('Support line is always busy', false),
Feedback('Confusing', false),
Feedback('Other', false),
];
}
i was hoping it should show a screen like a hero style on flutter that will show this other option to indicate whats wrong why they choose this option?,,
please let me know if i did something wrong thank you for all the help
Aucun commentaire:
Enregistrer un commentaire