import 'package:flutter/services.dart'; onTap: () { Clipboard.setData(ClipboardData(text: "your text")); },