Profile form
Generated reference for ovok_flutter: profile form.
- Stable unknown
- Release candidate since 0.1.0-rc.4
- Development since 0.1.0-dev.25+148a28a
ProfileForm
class ProfileForm extends StatefulWidgetLoads and updates the signed-in patient's configured FHIR fields.
Constructors
ProfileForm.new
ProfileForm({
required Ovok ovok,
required List<ProfileFormField> fields,
AuthTranslations translations = defaultAuthTranslations,
Future<void> Function(Map<String, dynamic>, Map<String, String>)? onSuccess,
void Function(Object)? onError,
Key? key,
})Creates a patient profile form for fields.
| Parameter | Type | Kind | Default |
|---|---|---|---|
ovok | Ovok | required named | |
fields | List<ProfileFormField> | required named | |
translations | AuthTranslations | named | defaultAuthTranslations |
onSuccess | Future<void> Function(Map<String, dynamic>, Map<String, String>)? | named | |
onError | void Function(Object)? | named | |
key | Key? | named |
Properties
ProfileForm.ovok
final Ovok ovokThe client used to read and update the profile.
ProfileForm.fields
final List<ProfileFormField> fieldsThe Patient fields to display and save.
ProfileForm.translations
final AuthTranslations translationsLabels to use for this form.
ProfileForm.onSuccess
final Future<void> Function(Map<String, dynamic>, Map<String, String>)? onSuccessCalled after the server saves the profile and edited values.
ProfileForm.onError
final void Function(Object)? onErrorCalled when loading or saving fails.
ProfileFormField
class ProfileFormFieldA text field in ProfileForm, addressed by its FHIR JSON Pointer path.
Constructors
ProfileFormField.new
ProfileFormField({
required String path,
required String label,
TextInputType keyboardType = TextInputType.text,
})Creates a field such as /name/0/given/0.
| Parameter | Type | Kind | Default |
|---|---|---|---|
path | String | required named | |
label | String | required named | |
keyboardType | TextInputType | named | TextInputType.text |
Properties
ProfileFormField.path
final String pathThe JSON Pointer path in a FHIR Patient resource.
ProfileFormField.label
final String labelThe visible field label.
ProfileFormField.keyboardType
final TextInputType keyboardTypeThe keyboard used to edit the value.
Last updated on