forked from firka/student-legacy
added rounded border icon (new style thing)
This commit is contained in:
parent
1314b2f068
commit
09e416ab74
28
filcnaplo_mobile_ui/lib/common/round_border_icon.dart
Normal file
28
filcnaplo_mobile_ui/lib/common/round_border_icon.dart
Normal 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,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user