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 StatefulWidget

Loads 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.

ParameterTypeKindDefault
ovokOvokrequired named
fieldsList<ProfileFormField>required named
translationsAuthTranslationsnameddefaultAuthTranslations
onSuccessFuture<void> Function(Map<String, dynamic>, Map<String, String>)?named
onErrorvoid Function(Object)?named
keyKey?named

Properties

ProfileForm.ovok

final Ovok ovok

The client used to read and update the profile.

ProfileForm.fields

final List<ProfileFormField> fields

The Patient fields to display and save.

ProfileForm.translations

final AuthTranslations translations

Labels to use for this form.

ProfileForm.onSuccess

final Future<void> Function(Map<String, dynamic>, Map<String, String>)? onSuccess

Called after the server saves the profile and edited values.

ProfileForm.onError

final void Function(Object)? onError

Called when loading or saving fails.

ProfileFormField

class ProfileFormField

A 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.

ParameterTypeKindDefault
pathStringrequired named
labelStringrequired named
keyboardTypeTextInputTypenamedTextInputType.text

Properties

ProfileFormField.path

final String path

The JSON Pointer path in a FHIR Patient resource.

ProfileFormField.label

final String label

The visible field label.

ProfileFormField.keyboardType

final TextInputType keyboardType

The keyboard used to edit the value.

Last updated on

On this page