chatbuttonset3 function
Implementation
Widget chatbuttonset3(int index) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ElevatedButton(
style: ButtonStyle(
backgroundColor: WidgetStateProperty.all<Color>(Colors.white),
shape: WidgetStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: const BorderRadius.only(
bottomLeft: Radius.circular(30),
bottomRight: Radius.circular(30),
topLeft: Radius.zero,
topRight: Radius.circular(30)),
side: BorderSide(color: Colors.blue.shade700)))),
child: Text(controller.question3[index],
style: TextStyle(color: Colors.blue.shade700)),
onPressed: () {
controller.question5.clear();
controller.selectedendquestion.value = "";
controller.selectedquestion4.value = "";
controller.selectedquestion5.value = "";
controller.selectedquestion3.value = controller.question3[index];
controller.level4data(controller.selectedquestion3.value);
print('selectedquestion3: ${controller.selectedquestion3}');
_scrollDown();
},
),
],
);
}