Browse Source

fix(neon): Fix NeonImageWrapper borderRadius fallback

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/897/head
jld3103 1 year ago
parent
commit
5c9dffbbfa
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  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