diegoveloper / flutter_percent_indicator

Flutter percent indicator library
BSD 2-Clause "Simplified" License
679 stars 206 forks source link

How to remove the blank here? Do you have relevant settings? #119

Closed fuyunmanbu closed 3 years ago

fuyunmanbu commented 3 years ago

Snip20210415_42

diegoveloper commented 3 years ago

Add a minimum code to reproduce the issue

fuyunmanbu commented 3 years ago
Container(
      height: 280,
      width: double.infinity,
      decoration: BoxDecoration(
          color: Colors.white,
          borderRadius: BorderRadius.circular(10)
      ),
      child: CircularPercentIndicator(
          radius: 200,
          lineWidth: 10,
          animation: true,
          percent: 0.7,
          center: Text(
            "70.0%",
            // style: Constants.textBold20,
          ),
          footer: Container(
            color: Colors.amber,
            child: Text(
              "footer",
              // style: Constants.textBold14,
            ),
          ),
          circularStrokeCap: CircularStrokeCap.round,
          progressColor: Color(0xFF1994F4),
          backgroundColor: Colors.white,
          arcType: ArcType.HALF,
          arcBackgroundColor: Color(0xFFF2F3F7)
      ),
    )
diegoveloper commented 3 years ago

Play with the offset value.

              footer: Transform.translate(
                offset: Offset(0.0, -50),
                child: Container(
                  color: Colors.amber,
                  child: Text(
                    "footer",
                    // style: Constants.textBold14,
                  ),
                ),
              ),
fuyunmanbu commented 3 years ago

thank you very much