对于这个简单的问题,我很抱歉,我搜索了很久,仍然没有找到合适的解决方案. 除了定制理发师,还有别的办法吗?
Stack(
alignment: Alignment.bottomCenter,
children: [
CircleAvatar(
radius: 100,
foregroundImage:
_pickedImage == null ? null : FileImage(_pickedImage!),
child: const Icon(
Icons.person_outlined,
size: 40,
),
),
Container(
color: Colors.white.withOpacity(0.8),
width: 200,
height: 50,
child: TextButton.icon(
onPressed: _pickImage,
icon: const Icon(Icons.image),
label: const Text(
"Upload Image",
),
),
),
],
);