Код: Выделить всё
Positioned(
top: 90,
left: (MediaQuery.of(context).size.width - 87) / 2,
child: GestureDetector(
onTap: getImage,
child: ClipOval(
child: Container(
width: 87,
height: 87,
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
color: Colors.white,
width: 3,
),
),
child: _imageFile != null
? Image.file(
_imageFile!,
fit: BoxFit.cover,
)
: (_profilData != null &&
_profilData!['image'] != null)
? CachedNetworkImage(
imageUrl:
'http://172.16.103.5/flutter/foto_profil/${_profilData!['image']}',
placeholder: (context, url) =>
CircularProgressIndicator(),
errorWidget: (context, url, error) =>
Icon(Icons.error),
fit: BoxFit.cover,
)
: Image.asset(
'assets/images/icon_profil.png',
fit: BoxFit.cover,
),
),
),
),
),
Я проверил, что URL-адрес правильный и изображение существует в этом месте. Может ли кто-нибудь подсказать мне, как устранить и решить эту проблему?
Подробнее здесь: https://stackoverflow.com/questions/784 ... in-flutter