WIP
This commit is contained in:
parent
f10f9c1f02
commit
af5c33c6b2
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -198,6 +198,12 @@ class PetsPageModel extends FlutterFlowModel<PetsPageWidget> {
|
||||||
DialogUtil.error(buildContext!,
|
DialogUtil.error(buildContext!,
|
||||||
jsonDecode(response.jsonBody['error_msg'])[0]['message']);
|
jsonDecode(response.jsonBody['error_msg'])[0]['message']);
|
||||||
}
|
}
|
||||||
|
DialogUtil.success(
|
||||||
|
buildContext!,
|
||||||
|
FFLocalizations.of(buildContext!).getVariableText(
|
||||||
|
enText: 'Pet successfully updated',
|
||||||
|
ptText: 'Pet atualizado com sucesso',
|
||||||
|
));
|
||||||
}).catchError((error) {
|
}).catchError((error) {
|
||||||
log(error.toString());
|
log(error.toString());
|
||||||
DialogUtil.errorDefault(buildContext!);
|
DialogUtil.errorDefault(buildContext!);
|
||||||
|
|
|
@ -226,7 +226,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
||||||
hintText: FFLocalizations.of(context)
|
hintText: FFLocalizations.of(context)
|
||||||
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
||||||
suffixIcon: Icons.person,
|
suffixIcon: Symbols.format_color_text,
|
||||||
haveMaxLength: true,
|
haveMaxLength: true,
|
||||||
maxLength: 80,
|
maxLength: 80,
|
||||||
),
|
),
|
||||||
|
@ -240,8 +240,9 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
labelText: FFLocalizations.of(context).getVariableText(
|
labelText: FFLocalizations.of(context).getVariableText(
|
||||||
ptText: 'Espécie', enText: 'Species'),
|
ptText: 'Espécie', enText: 'Species'),
|
||||||
hintText: FFLocalizations.of(context).getVariableText(
|
hintText: FFLocalizations.of(context).getVariableText(
|
||||||
ptText: 'Espécie', enText: 'Species'),
|
ptText: 'Ex: Cachorro, Gato, Papagaio',
|
||||||
suffixIcon: Symbols.raven_sharp,
|
enText: 'e.g. Dog, Cat, Parrot'),
|
||||||
|
suffixIcon: Symbols.sound_detection_dog_barking,
|
||||||
haveMaxLength: true,
|
haveMaxLength: true,
|
||||||
maxLength: 80,
|
maxLength: 80,
|
||||||
),
|
),
|
||||||
|
@ -255,8 +256,9 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
focusNode: _model.textFieldFocusRace,
|
focusNode: _model.textFieldFocusRace,
|
||||||
labelText: FFLocalizations.of(context)
|
labelText: FFLocalizations.of(context)
|
||||||
.getVariableText(ptText: 'Raça', enText: 'Race'),
|
.getVariableText(ptText: 'Raça', enText: 'Race'),
|
||||||
hintText: FFLocalizations.of(context)
|
hintText: FFLocalizations.of(context).getVariableText(
|
||||||
.getVariableText(ptText: 'Raça', enText: 'Race'),
|
ptText: 'Ex: Labrador, Poodle, Siamês, Persa',
|
||||||
|
enText: 'e.g. Labrador, Poodle, Siamese, Persian'),
|
||||||
suffixIcon: Icons.pets_outlined,
|
suffixIcon: Icons.pets_outlined,
|
||||||
haveMaxLength: true,
|
haveMaxLength: true,
|
||||||
maxLength: 80,
|
maxLength: 80,
|
||||||
|
@ -271,9 +273,10 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
focusNode: _model.textFieldFocusColor,
|
focusNode: _model.textFieldFocusColor,
|
||||||
labelText: FFLocalizations.of(context)
|
labelText: FFLocalizations.of(context)
|
||||||
.getVariableText(ptText: 'Cor', enText: 'Color'),
|
.getVariableText(ptText: 'Cor', enText: 'Color'),
|
||||||
hintText: FFLocalizations.of(context)
|
hintText: FFLocalizations.of(context).getVariableText(
|
||||||
.getVariableText(ptText: 'Cor', enText: 'Color'),
|
ptText: 'Ex: Preto, Amarelo, Branco',
|
||||||
suffixIcon: Icons.invert_colors_on_outlined,
|
enText: 'e.g. Black, Yellow, White'),
|
||||||
|
suffixIcon: Symbols.palette,
|
||||||
haveMaxLength: true,
|
haveMaxLength: true,
|
||||||
maxLength: 80,
|
maxLength: 80,
|
||||||
),
|
),
|
||||||
|
@ -612,7 +615,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
enText: 'Write your observations here...'),
|
enText: 'Write your observations here...'),
|
||||||
suffixIcon: Icons.text_fields,
|
suffixIcon: Icons.text_fields,
|
||||||
haveMaxLength: true,
|
haveMaxLength: true,
|
||||||
maxLength: 80,
|
maxLength: 250,
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(70, 20, 70, 30),
|
padding: const EdgeInsets.fromLTRB(70, 20, 70, 30),
|
||||||
|
@ -681,7 +684,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
||||||
hintText: FFLocalizations.of(context)
|
hintText: FFLocalizations.of(context)
|
||||||
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
||||||
suffixIcon: Icons.person,
|
suffixIcon: Symbols.format_color_text,
|
||||||
haveMaxLength: true,
|
haveMaxLength: true,
|
||||||
maxLength: 80,
|
maxLength: 80,
|
||||||
),
|
),
|
||||||
|
@ -695,8 +698,9 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
labelText: FFLocalizations.of(context).getVariableText(
|
labelText: FFLocalizations.of(context).getVariableText(
|
||||||
ptText: 'Espécie', enText: 'Species'),
|
ptText: 'Espécie', enText: 'Species'),
|
||||||
hintText: FFLocalizations.of(context).getVariableText(
|
hintText: FFLocalizations.of(context).getVariableText(
|
||||||
ptText: 'Espécie', enText: 'Species'),
|
ptText: 'Ex: Cachorro, Gato, Papagaio',
|
||||||
suffixIcon: Icons.pest_control,
|
enText: 'e.g. Dog, Cat, Parrot'),
|
||||||
|
suffixIcon: Symbols.sound_detection_dog_barking,
|
||||||
haveMaxLength: true,
|
haveMaxLength: true,
|
||||||
maxLength: 80,
|
maxLength: 80,
|
||||||
),
|
),
|
||||||
|
@ -710,9 +714,10 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
focusNode: _model.textFieldFocusRace,
|
focusNode: _model.textFieldFocusRace,
|
||||||
labelText: FFLocalizations.of(context)
|
labelText: FFLocalizations.of(context)
|
||||||
.getVariableText(ptText: 'Raça', enText: 'Race'),
|
.getVariableText(ptText: 'Raça', enText: 'Race'),
|
||||||
hintText: FFLocalizations.of(context)
|
hintText: FFLocalizations.of(context).getVariableText(
|
||||||
.getVariableText(ptText: 'Raça', enText: 'Race'),
|
ptText: 'Ex: Labrador, Poodle, Siamês, Persa',
|
||||||
suffixIcon: Icons.pets,
|
enText: 'e.g. Labrador, Poodle, Siamese, Persian'),
|
||||||
|
suffixIcon: Icons.pets_outlined,
|
||||||
haveMaxLength: true,
|
haveMaxLength: true,
|
||||||
maxLength: 80,
|
maxLength: 80,
|
||||||
),
|
),
|
||||||
|
@ -726,9 +731,10 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
focusNode: _model.textFieldFocusColor,
|
focusNode: _model.textFieldFocusColor,
|
||||||
labelText: FFLocalizations.of(context)
|
labelText: FFLocalizations.of(context)
|
||||||
.getVariableText(ptText: 'Cor', enText: 'Color'),
|
.getVariableText(ptText: 'Cor', enText: 'Color'),
|
||||||
hintText: FFLocalizations.of(context)
|
hintText: FFLocalizations.of(context).getVariableText(
|
||||||
.getVariableText(ptText: 'Cor', enText: 'Color'),
|
ptText: 'Ex: Preto, Amarelo, Branco',
|
||||||
suffixIcon: Icons.invert_colors,
|
enText: 'e.g. Black, Yellow, White'),
|
||||||
|
suffixIcon: Symbols.palette,
|
||||||
haveMaxLength: true,
|
haveMaxLength: true,
|
||||||
maxLength: 80,
|
maxLength: 80,
|
||||||
),
|
),
|
||||||
|
@ -773,7 +779,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
hintText: FFLocalizations.of(context)
|
hintText: FFLocalizations.of(context)
|
||||||
.getVariableText(
|
.getVariableText(
|
||||||
ptText: 'Data de Nascimento',
|
ptText: 'Data de Nascimento',
|
||||||
enText: 'Birth Date',
|
enText: 'Date of Birth',
|
||||||
),
|
),
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
hintStyle: FlutterFlowTheme.of(context)
|
||||||
.labelMedium
|
.labelMedium
|
||||||
|
@ -1067,7 +1073,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
enText: 'Write your observations here...'),
|
enText: 'Write your observations here...'),
|
||||||
suffixIcon: Icons.text_fields,
|
suffixIcon: Icons.text_fields,
|
||||||
haveMaxLength: true,
|
haveMaxLength: true,
|
||||||
maxLength: 80,
|
maxLength: 250,
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(70, 20, 70, 30),
|
padding: const EdgeInsets.fromLTRB(70, 20, 70, 30),
|
||||||
|
|
Loading…
Reference in New Issue