diff --git a/src/lib/common/widgets/custom_divider.dart b/src/lib/common/widgets/custom_divider.dart new file mode 100644 index 0000000..301aeb8 --- /dev/null +++ b/src/lib/common/widgets/custom_divider.dart @@ -0,0 +1,26 @@ +import 'package:flutter/material.dart'; + +class RoundedDivider extends StatelessWidget { + final double height; + final double width; + final Color color; + + const RoundedDivider({ + Key? key, + this.height = 2.0, + this.width = double.infinity, + this.color = Colors.grey, + }) : super(key: key); + + @override + Widget build(BuildContext context) { + return Container( + height: height, + width: width, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(height / 2), + color: color, + ), + ); + } +}