Добавил png в разрешенные форматы маппера

This commit is contained in:
Никита Потапов 2024-12-13 03:19:59 +04:00
parent 8083c2367f
commit 331032cbec

View File

@ -3,7 +3,7 @@ import 'package:pmu/domain/card.dart';
extension UserDtoToModel on UserDto {
CardPostData toDomain() {
const allowedExtensions = ['jpg', 'jpeg', 'gif'];
const allowedExtensions = ['jpg', 'jpeg', 'gif', 'png'];
bool isValidImageUrl(String? url) {
if (url == null) return false;