buildDots method

Widget buildDots(
  1. BuildContext context
)

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.lightGreen[600] : Colors.white,
      ),
    );
    dots.add(w);
  }
  widget = Row(
    mainAxisSize: MainAxisSize.min,
    children: dots,
  );
  return widget;
}