Flutter: when I click on other widget, SelectableText not deselect

Viewed 253

when selecting text from SelectableText and wanting to change the selected text both SelectableText remain as they're selected.

enter image description here

Code:

Column(
children:[
 SelectableText(
      '1004',
      style: Theme.of(context).textTheme.bodyText2,
      textAlign: TextAlign.center,
    ),
SelectableText(
      '1005',
      style: Theme.of(context).textTheme.bodyText2,
      textAlign: TextAlign.center,
    ),
]
)

*I used 2 separated SelectableText.

0 Answers
Related