getFlatProgressAccent static method

Widget getFlatProgressAccent(
  1. int value,
  2. double height
)

Implementation

static Widget getFlatProgressAccent(int value, double height){
  int rest = 100 - value;
  return Stack(
    children: <Widget>[
      Row(
        children: <Widget>[
          Expanded(
            child: Container(height: height, color: MyColors.accentLight,),
            flex: 100,
          ),
        ],
      ),
      Row(
        children: <Widget>[
          Expanded(
            child: Container(width: 200, height: 20, color: MyColors.accent,),
            flex: value,
          ),
          Expanded(
            child: Container(),
            flex: rest,
          ),
        ],
      )
    ],
  );
}