I would like to double-click on the TextButton to transfer text from it to the free ElevatedButton and disable the TextButton. And turn it on after double-clicking on the ElevatedButton containing the text. How can I do this?
Column(
children: [
Wrap(
alignment: WrapAlignment.spaceEvenly,
spacing: 5.0,
children: [
ElevatedButton(onPressed: () {}, child: Text('')),
ElevatedButton(onPressed: () {}, child: Text('')),
ElevatedButton(onPressed: () {}, child: Text('')),
],
),
Wrap(
alignment: WrapAlignment.spaceEvenly,
spacing: 5.0,
children: [
TextButton(
style: TextButton.styleFrom(
textStyle: const TextStyle(fontSize: 20),
),
onPressed: () {},
child: const Text('Text1'),
),
TextButton(
style: TextButton.styleFrom(
textStyle: const TextStyle(fontSize: 20),
),
onPressed: () {},
child: const Text('Teeeeeext2'),
),
TextButton(
style: TextButton.styleFrom(
textStyle: const TextStyle(fontSize: 20),
),
onPressed: () {},
child: const Text('Texxxxxxxxxxxxxxxxt3'),
),
TextButton(
style: TextButton.styleFrom(
textStyle: const TextStyle(fontSize: 20),
),
onPressed: () {},
child: const Text('Text4'),
),
TextButton(
style: TextButton.styleFrom(
textStyle: const TextStyle(fontSize: 20),
),
onPressed: () {},
child: const Text('Text5'),
),
],
)
],
),
