fix(admin): vignettes enfants du wizard validation (cover, sans fond blanc)
- BoxFit.cover pour remplir le cadre photo - Suppression du fond blanc du slot, rayon factorisé Made-with: Cursor
This commit is contained in:
parent
ccfcfa3287
commit
f1c9db2e7b
@ -508,12 +508,12 @@ class _ValidationFamilyWizardState extends State<ValidationFamilyWizard> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildEnfantPhotoSlot(String photoUrl, double width, double height) {
|
Widget _buildEnfantPhotoSlot(String photoUrl, double width, double height) {
|
||||||
|
const photoRadius = 8.0;
|
||||||
return Container(
|
return Container(
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white,
|
borderRadius: BorderRadius.circular(photoRadius),
|
||||||
borderRadius: BorderRadius.circular(8),
|
|
||||||
border: Border.all(color: Colors.black.withValues(alpha: 0.08)),
|
border: Border.all(color: Colors.black.withValues(alpha: 0.08)),
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
@ -533,7 +533,7 @@ class _ValidationFamilyWizardState extends State<ValidationFamilyWizard> {
|
|||||||
)
|
)
|
||||||
: AuthNetworkImage(
|
: AuthNetworkImage(
|
||||||
url: photoUrl,
|
url: photoUrl,
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.cover,
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
errorBuilder: (_, __, ___) => ColoredBox(
|
errorBuilder: (_, __, ___) => ColoredBox(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user