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