getCopyButton method
Implementation
Widget getCopyButton({String copyText = ""}) {
return GestureDetector(
onTap: () {
Clipboard.setData(ClipboardData(text: copyText));
},
child: Container(
width: 50,
height: 50,
decoration: BoxDecoration(
color: Colors.green,
borderRadius: BorderRadius.circular(25),
),
child: const Icon(
Icons.copy,
color: Colors.white,
),
),
);
}