|
I would like to propose that certain form fields can be made read only. I do not know if it is available. |
Answered by
B3K4682
Feb 1, 2025
Replies: 1 comment
|
You can extend the form field and set class ProfileForm extends NyFormData {
ProfileForm({String? name}) : super(name ?? "profile");
@override
fields() => [
Field.text(
"name",
style: "outlined".extend(
enabled: false,
),
),
];
}Or if you want to make text selectable, but not editable, you can replace Hope this helps! |
0 replies
Answer selected by
shriharip
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can extend the form field and set
enabled: false. Here's an example:Or if you want to make text selectable, but not editable, you can replace
enabled: falsewithreadOnly: trueHope this helps!