Instantly share code, notes, and snippets.

What would you like to do?
class SliderLine extends StatelessWidget {
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
mainAxisSize: MainAxisSize.max,
children: List.generate(
(i) => Expanded(
child: Container(
height: 2.0,
decoration: BoxDecoration(
color: i.isEven
? Theme.of(context).primaryColor
: Colors.white),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment