buildDots method
Implementation
Widget buildDots(BuildContext context){
Widget widget;
List<Widget> dots = [];
for(int i=0; i<MAX; i++){
Widget w = Container(
margin: EdgeInsets.symmetric(horizontal: 5),
height: 8,
width: 8,
child: CircleAvatar(
backgroundColor: step-1 == i ? Colors.blue : Colors.grey[400],
),
);
dots.add(w);
}
widget = Row(
mainAxisSize: MainAxisSize.min,
children: dots,
);
return widget;
}