make fields selectable.

This commit is contained in:
2024-08-12 14:45:01 +02:00
parent 89e8888662
commit aa87d76488
2 changed files with 30 additions and 27 deletions

View File

@@ -110,11 +110,12 @@ class _MyTextFieldState extends State<MyTextField> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return TextField( return TextField(
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()), color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
),
controller: widget.controller, controller: widget.controller,
focusNode: _focus, focusNode: _focus,
readOnly: makeEditable(), readOnly: makeEditable(),
enabled: !makeEditable(), //enabled: !makeEditable(),
obscureText: false, obscureText: false,
onChanged: (_) => setState(() { onChanged: (_) => setState(() {
startup = false; startup = false;

View File

@@ -257,6 +257,7 @@ class _PatientDetailsState extends State<PatientDetails> {
width: 3.0), width: 3.0),
), ),
//constraints: const BoxConstraints.expand(height: 250.0), //constraints: const BoxConstraints.expand(height: 250.0),
child: SelectionArea(
child: Column( child: Column(
children: [ children: [
Row( Row(
@@ -284,6 +285,7 @@ class _PatientDetailsState extends State<PatientDetails> {
getMedAidDetailsFields(), getMedAidDetailsFields(),
], ],
), ),
),
); );
} }
} }