Skip to content

Commit

Permalink
feat: added custom rounded divider
Browse files Browse the repository at this point in the history
  • Loading branch information
SethCohen committed Apr 3, 2023
1 parent 6486dce commit 17b657f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/lib/common/widgets/custom_divider.dart
Original file line number Diff line number Diff line change
@@ -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,
),
);
}
}

0 comments on commit 17b657f

Please sign in to comment.