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!,
|
||||
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) {
|
||||
log(error.toString());
|
||||
DialogUtil.errorDefault(buildContext!);
|
||||
|
|
|
@ -226,7 +226,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
||||
hintText: FFLocalizations.of(context)
|
||||
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
||||
suffixIcon: Icons.person,
|
||||
suffixIcon: Symbols.format_color_text,
|
||||
haveMaxLength: true,
|
||||
maxLength: 80,
|
||||
),
|
||||
|
@ -240,8 +240,9 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
labelText: FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Espécie', enText: 'Species'),
|
||||
hintText: FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Espécie', enText: 'Species'),
|
||||
suffixIcon: Symbols.raven_sharp,
|
||||
ptText: 'Ex: Cachorro, Gato, Papagaio',
|
||||
enText: 'e.g. Dog, Cat, Parrot'),
|
||||
suffixIcon: Symbols.sound_detection_dog_barking,
|
||||
haveMaxLength: true,
|
||||
maxLength: 80,
|
||||
),
|
||||
|
@ -255,8 +256,9 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
focusNode: _model.textFieldFocusRace,
|
||||
labelText: FFLocalizations.of(context)
|
||||
.getVariableText(ptText: 'Raça', enText: 'Race'),
|
||||
hintText: FFLocalizations.of(context)
|
||||
.getVariableText(ptText: 'Raça', enText: 'Race'),
|
||||
hintText: FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Ex: Labrador, Poodle, Siamês, Persa',
|
||||
enText: 'e.g. Labrador, Poodle, Siamese, Persian'),
|
||||
suffixIcon: Icons.pets_outlined,
|
||||
haveMaxLength: true,
|
||||
maxLength: 80,
|
||||
|
@ -271,9 +273,10 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
focusNode: _model.textFieldFocusColor,
|
||||
labelText: FFLocalizations.of(context)
|
||||
.getVariableText(ptText: 'Cor', enText: 'Color'),
|
||||
hintText: FFLocalizations.of(context)
|
||||
.getVariableText(ptText: 'Cor', enText: 'Color'),
|
||||
suffixIcon: Icons.invert_colors_on_outlined,
|
||||
hintText: FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Ex: Preto, Amarelo, Branco',
|
||||
enText: 'e.g. Black, Yellow, White'),
|
||||
suffixIcon: Symbols.palette,
|
||||
haveMaxLength: true,
|
||||
maxLength: 80,
|
||||
),
|
||||
|
@ -612,7 +615,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
enText: 'Write your observations here...'),
|
||||
suffixIcon: Icons.text_fields,
|
||||
haveMaxLength: true,
|
||||
maxLength: 80,
|
||||
maxLength: 250,
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(70, 20, 70, 30),
|
||||
|
@ -681,7 +684,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
||||
hintText: FFLocalizations.of(context)
|
||||
.getVariableText(ptText: 'Nome', enText: 'Name'),
|
||||
suffixIcon: Icons.person,
|
||||
suffixIcon: Symbols.format_color_text,
|
||||
haveMaxLength: true,
|
||||
maxLength: 80,
|
||||
),
|
||||
|
@ -695,8 +698,9 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
labelText: FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Espécie', enText: 'Species'),
|
||||
hintText: FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Espécie', enText: 'Species'),
|
||||
suffixIcon: Icons.pest_control,
|
||||
ptText: 'Ex: Cachorro, Gato, Papagaio',
|
||||
enText: 'e.g. Dog, Cat, Parrot'),
|
||||
suffixIcon: Symbols.sound_detection_dog_barking,
|
||||
haveMaxLength: true,
|
||||
maxLength: 80,
|
||||
),
|
||||
|
@ -710,9 +714,10 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
focusNode: _model.textFieldFocusRace,
|
||||
labelText: FFLocalizations.of(context)
|
||||
.getVariableText(ptText: 'Raça', enText: 'Race'),
|
||||
hintText: FFLocalizations.of(context)
|
||||
.getVariableText(ptText: 'Raça', enText: 'Race'),
|
||||
suffixIcon: Icons.pets,
|
||||
hintText: FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Ex: Labrador, Poodle, Siamês, Persa',
|
||||
enText: 'e.g. Labrador, Poodle, Siamese, Persian'),
|
||||
suffixIcon: Icons.pets_outlined,
|
||||
haveMaxLength: true,
|
||||
maxLength: 80,
|
||||
),
|
||||
|
@ -726,9 +731,10 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
focusNode: _model.textFieldFocusColor,
|
||||
labelText: FFLocalizations.of(context)
|
||||
.getVariableText(ptText: 'Cor', enText: 'Color'),
|
||||
hintText: FFLocalizations.of(context)
|
||||
.getVariableText(ptText: 'Cor', enText: 'Color'),
|
||||
suffixIcon: Icons.invert_colors,
|
||||
hintText: FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Ex: Preto, Amarelo, Branco',
|
||||
enText: 'e.g. Black, Yellow, White'),
|
||||
suffixIcon: Symbols.palette,
|
||||
haveMaxLength: true,
|
||||
maxLength: 80,
|
||||
),
|
||||
|
@ -773,7 +779,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
hintText: FFLocalizations.of(context)
|
||||
.getVariableText(
|
||||
ptText: 'Data de Nascimento',
|
||||
enText: 'Birth Date',
|
||||
enText: 'Date of Birth',
|
||||
),
|
||||
hintStyle: FlutterFlowTheme.of(context)
|
||||
.labelMedium
|
||||
|
@ -1067,7 +1073,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
|||
enText: 'Write your observations here...'),
|
||||
suffixIcon: Icons.text_fields,
|
||||
haveMaxLength: true,
|
||||
maxLength: 80,
|
||||
maxLength: 250,
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(70, 20, 70, 30),
|
||||
|
|
Loading…
Reference in New Issue