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