Browse Source

Merge pull request #897 from nextcloud/fix/neon/image-wrapper-border-radius-fallback

fix(neon): Fix NeonImageWrapper borderRadius fallback
pull/900/head
Kate 1 year ago committed by GitHub
parent
commit
926dbd48a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/neon/neon/lib/src/widgets/image.dart

4
packages/neon/neon/lib/src/widgets/image.dart

@ -345,7 +345,7 @@ class NeonImageWrapper extends StatelessWidget {
required this.child,
this.color = Colors.white,
this.size,
this.borderRadius = const BorderRadius.all(Radius.circular(8)),
this.borderRadius,
super.key,
});
@ -373,7 +373,7 @@ class NeonImageWrapper extends StatelessWidget {
width: size?.width,
alignment: Alignment.center,
decoration: BoxDecoration(
borderRadius: borderRadius,
borderRadius: borderRadius ?? const BorderRadius.all(Radius.circular(8)),
color: color,
),
clipBehavior: Clip.antiAlias,

Loading…
Cancel
Save