make fields selectable.
This commit is contained in:
parent
89e8888662
commit
aa87d76488
2 changed files with 30 additions and 27 deletions
|
|
@ -110,11 +110,12 @@ class _MyTextFieldState extends State<MyTextField> {
|
|||
Widget build(BuildContext context) {
|
||||
return TextField(
|
||||
style: TextStyle(
|
||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
|
||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||
),
|
||||
controller: widget.controller,
|
||||
focusNode: _focus,
|
||||
readOnly: makeEditable(),
|
||||
enabled: !makeEditable(),
|
||||
//enabled: !makeEditable(),
|
||||
obscureText: false,
|
||||
onChanged: (_) => setState(() {
|
||||
startup = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue