make fields selectable.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -257,6 +257,7 @@ class _PatientDetailsState extends State<PatientDetails> {
|
||||
width: 3.0),
|
||||
),
|
||||
//constraints: const BoxConstraints.expand(height: 250.0),
|
||||
child: SelectionArea(
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
@@ -284,6 +285,7 @@ class _PatientDetailsState extends State<PatientDetails> {
|
||||
getMedAidDetailsFields(),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user