buildDots method

Widget buildDots(
  1. BuildContext context
)

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: page == i ? Colors.blue : Colors.grey[100],
      ),
    );
    dots.add(w);
  }
  widget = Row(
    mainAxisSize: MainAxisSize.min,
    children: dots,
  );
  return widget;
}