divider method

Widget divider(
  1. String label
)

Thin separator used between social buttons and the OTP form.

Implementation

Widget divider(String label) {
  final line = Expanded(
    child: Divider(color: theme.onSurfaceMuted.withValues(alpha: 0.3)),
  );
  return Row(
    children: [
      line,
      Padding(
        padding: const EdgeInsets.symmetric(horizontal: 10),
        child: Text(label, style: mutedStyle),
      ),
      line,
    ],
  );
}