|
|
|
@ -15,16 +15,19 @@ class NeonImageWrapper extends StatelessWidget {
|
|
|
|
|
final BorderRadius? borderRadius; |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(final BuildContext context) => SizedBox.fromSize( |
|
|
|
|
size: size, |
|
|
|
|
child: ClipRRect( |
|
|
|
|
Widget build(final BuildContext context) => ClipRRect( |
|
|
|
|
borderRadius: borderRadius ?? BorderRadius.zero, |
|
|
|
|
child: ColorFiltered( |
|
|
|
|
colorFilter: ColorFilter.mode(color, BlendMode.dstATop), |
|
|
|
|
child: SizedBox.fromSize( |
|
|
|
|
size: size, |
|
|
|
|
child: ColoredBox( |
|
|
|
|
color: color, |
|
|
|
|
color: Colors.transparent, |
|
|
|
|
child: Center( |
|
|
|
|
child: child, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|