fix imgs and pets
This commit is contained in:
parent
f550b71f7d
commit
59b4979012
|
@ -100,14 +100,11 @@ class _CardItemTemplateComponentWidgetState
|
||||||
Widget _generateImage() {
|
Widget _generateImage() {
|
||||||
return ClipRRect(
|
return ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
child: CachedNetworkImage(
|
child: Image.network(
|
||||||
fadeInDuration: const Duration(milliseconds: 500),
|
widget.imagePath ?? '',
|
||||||
fadeOutDuration: const Duration(milliseconds: 500),
|
|
||||||
imageUrl: widget.imagePath ?? '',
|
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
width: 90,
|
width: 90,
|
||||||
height: 90,
|
height: 90,
|
||||||
key: Key(widget.imagePath ?? ''),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,7 +151,7 @@ class _PetsHistoryScreenState extends State<PetsHistoryScreen>
|
||||||
AppState().petAmountRegister == 0
|
AppState().petAmountRegister == 0
|
||||||
? FFLocalizations.of(context).getVariableText(
|
? FFLocalizations.of(context).getVariableText(
|
||||||
ptText: "Ilimitado", enText: "Unlimited")
|
ptText: "Ilimitado", enText: "Unlimited")
|
||||||
: "${_petsWrap.length}/${AppState().petAmountRegister}",
|
: "${FFLocalizations.of(context).getVariableText(ptText: "Quantidade de Pets: ", enText: "Amount of Pets: ")}${_petsWrap.length}/${AppState().petAmountRegister}",
|
||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -866,7 +866,9 @@ class _PetsPageWidgetState extends State<PetsPageWidget>
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
final pickedDate = await showDatePicker(
|
final pickedDate = await showDatePicker(
|
||||||
context: context,
|
context: context,
|
||||||
initialDate: getCurrentTimestamp,
|
initialDate: DateFormat('dd/MM/yyyy')
|
||||||
|
.tryParse(
|
||||||
|
_model.textControllerData.text),
|
||||||
firstDate: DateTime(1990),
|
firstDate: DateTime(1990),
|
||||||
lastDate: DateTime.now(),
|
lastDate: DateTime.now(),
|
||||||
builder: (context, child) {
|
builder: (context, child) {
|
||||||
|
|
Loading…
Reference in New Issue