Skip to content

Instantly share code, notes, and snippets.

@MarcinusX
Created September 13, 2018 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcinusX/e5539af5a9833d6624e983015157a856 to your computer and use it in GitHub Desktop.
Save MarcinusX/e5539af5a9833d6624e983015157a856 to your computer and use it in GitHub Desktop.
class SliderLine extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
mainAxisSize: MainAxisSize.max,
children: List.generate(
40,
(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