SnackBar snackBar = SnackBar(
showCloseIcon: true,
duration: 100,
content: Text('Hello World'),
);
Text in SnackBar: not selectable for copy/paste by mouse or tap. Is there a way to enable text selection?
SnackBar snackBar = SnackBar(
showCloseIcon: true,
duration: 100,
content: Text('Hello World'),
);
Text in SnackBar: not selectable for copy/paste by mouse or tap. Is there a way to enable text selection?
2
Answers
Try using
SelectableText
:If you want to make your Text selectable, you need to use SelectableText for that.
If you want to make an area selectable you can wrap your Widget with SelectionArea.