added rounded border icon (new style thing)

This commit is contained in:
Kima 2023-08-27 23:58:32 +02:00
parent 1314b2f068
commit 09e416ab74

View File

@ -0,0 +1,28 @@
import 'package:flutter/material.dart';
class RoundBorderIcon extends StatelessWidget {
final Color color;
final double width;
final Widget icon;
const RoundBorderIcon(
{Key? key,
this.color = Colors.black,
this.width = 16.0,
required this.icon})
: super(key: key);
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
border: Border.all(color: color, width: width),
borderRadius: BorderRadius.circular(50.0),
),
child: Padding(
padding: EdgeInsets.zero,
child: icon,
),
);
}
}