custom_selectable_text

Creator: coderz1093

Last updated:

0 purchases

custom_selectable_text Image
custom_selectable_text Images

Languages

Categories

Add to Cart

Description:

custom selectable text

Custom Selectable Text #
This package helps you to select text and perform utilize functionalities like copy. You can also perform custom selectable like share text.
Screenshot #



Usage #



CustomSelectableText(
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...",
textAlign: TextAlign.center,
items: [
CustomSelectableTextItem(controlType: SelectionControlType.copy),
CustomSelectableTextItem(
controlType: SelectionControlType.selectAll),
CustomSelectableTextItem(
label: "Share",
controlType: SelectionControlType.other,
onPressed: (text) {
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text("$text is successfully shared"),
));
}),
],
)
copied to clipboard
You can also change to icons #



CustomSelectableText(
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...",
textAlign: TextAlign.center,
items: [
CustomSelectableTextItem.icon(controlType: SelectionControlType.copy, icon: const Icon(Icons.copy)),
CustomSelectableTextItem.icon(
controlType: SelectionControlType.selectAll, icon: const Icon(Icons.select_all)),
CustomSelectableTextItem.icon(
icon: const Icon(Icons.share),
onPressed: (text) {
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text("$text is successfully shared"),
));
}),
],
)
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.