buildProgress method

Widget buildProgress(
  1. BuildContext context
)

Implementation

Widget buildProgress(BuildContext context){
  double progress = step * (1 / MAX);
  Widget widget = Container(
    height: 4,
    width: 130,
    child: LinearProgressIndicator(
      value: progress,
      valueColor: AlwaysStoppedAnimation<Color>(MyColors.primary),
      backgroundColor: Colors.grey[300],
    ),
  );
  return widget;
}