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

Loading…
Cancel
Save