Copy to Clipboard
The Copy to Clipboard action copies text content to the device's clipboard, making it available for pasting in other apps or fields. This is commonly used for sharing codes, links, or generated content.
📦 Properties
message
Expression (String)
✅
The text content to copy to clipboard
✅ Common Use Cases
Copying referral codes, promo codes, or invite links
Copying generated passwords or tokens
Copying text from form fields for reuse
Sharing user IDs, transaction IDs, or confirmation codes
Copying dynamic content from API responses
⚙️ Default Behavior
By default:
Toast Notification
Shows "Copied to Clipboard!" success message (dashboard only)
Error Handling
Shows "Failed to copy to clipboard." on error (dashboard only)
Empty Message Handling
Gracefully handles null/empty messages without error
Platform Support
Works on all platforms supported by Flutter
🛠️ How to Use
Add the action to a widget event (e.g., button tap, text selection)
Choose Copy to Clipboard from the action list
Set the
messageproperty to the text you want to copy

Last updated