make fields selectable.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -257,32 +257,34 @@ 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: Column(
|
child: SelectionArea(
|
||||||
children: [
|
child: Column(
|
||||||
Row(
|
children: [
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
Row(
|
||||||
//crossAxisAlignment: ,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: setIcons(),
|
//crossAxisAlignment: ,
|
||||||
),
|
children: setIcons(),
|
||||||
Divider(
|
|
||||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
|
|
||||||
const SizedBox(height: 10),
|
|
||||||
getPatientDetailsField(),
|
|
||||||
const SizedBox(height: 10),
|
|
||||||
Text(
|
|
||||||
"Medical Aid Details",
|
|
||||||
textAlign: TextAlign.center,
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 25,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
|
||||||
),
|
),
|
||||||
),
|
Divider(
|
||||||
Divider(
|
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
|
||||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
|
const SizedBox(height: 10),
|
||||||
const SizedBox(height: 10),
|
getPatientDetailsField(),
|
||||||
getMedAidDetailsFields(),
|
const SizedBox(height: 10),
|
||||||
],
|
Text(
|
||||||
|
"Medical Aid Details",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 25,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Divider(
|
||||||
|
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
|
||||||
|
const SizedBox(height: 10),
|
||||||
|
getMedAidDetailsFields(),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user