icon static method
Implementation
static Widget icon({
required Widget child,
Color? lineColor,
double lineWidth = 60.0,
double spacing = 16.0,
double thickness = 1.0,
double height = 40.0,
}) {
return CustomPaint(
size: Size(double.infinity, height.h),
painter: CenterTextDivider(
content:
WidgetSpan(alignment: PlaceholderAlignment.middle, child: child),
lineColor: lineColor ?? Colors.white.withColorOpacity(0.5),
thickness: thickness,
spacing: spacing.w,
lineWidth: lineWidth.w,
),
);
}