Flutter circular progress indicator with a percentage also animated Circular progress indicator look like a chart. This is a funny and interesting tutorial for you. let’s do it…
CircularProgressIndicator(
strokeWidth: 250,
value: vale,
color: Colors.amber,
backgroundColor: Color.fromARGB(255, 255, 255, 255),
),
Tween animation builder using animate Circular progress indicator.
TweenAnimationBuilder(
tween: Tween<double>(begin: 0, end: 0.85),
duration: Duration(seconds: 4),
builder: (context, double vale, child) => Padding(
padding: const EdgeInsets.all(15.0),
child:
Column(mainAxisAlignment: MainAxisAlignment.center, children: [
CircularProgressIndicator(
strokeWidth: 250,
value: vale,
color: Colors.amber,
backgroundColor: Color.fromARGB(255, 255, 255, 255),
),
Text(
"${(vale * 100).toInt()}%",
style: TextStyle(
color: Color.fromARGB(255, 0, 0, 0), fontSize: 20),
),
]),
),
),
Flutter Chart Using Circular Progress Indicator
Full source code here
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Color.fromARGB(255, 37, 36, 36),
body: HomePage(),
),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Center(
child: Container(
child: TweenAnimationBuilder(
tween: Tween<double>(begin: 0, end: 0.85),
duration: Duration(seconds: 4),
builder: (context, double vale, child) => Padding(
padding: const EdgeInsets.all(15.0),
child:
Column(mainAxisAlignment: MainAxisAlignment.center, children: [
CircularProgressIndicator(
strokeWidth: 250,
value: vale,
color: Colors.amber,
backgroundColor: Color.fromARGB(255, 255, 255, 255),
),
Text(
"${(vale * 100).toInt()}%",
style: TextStyle(
color: Color.fromARGB(255, 0, 0, 0), fontSize: 20),
),
]),
),
),
),
);
}
}
- How to Conduct YouTube Keyword Research Easily?Introduction YouTube is the second largest search engine in the world, making it a valuable platform for content creators and businesses alike. To maximize your visibility and reach on YouTube, it is crucial to conduct proper keyword research. By identifying the right keywords, you can optimize your videos for search and increase your chances of …
- How to upgrade the Dart SDK version in flutterIf you’re a Flutter developer, you know how important it is to stay up-to-date with the latest version of the Dart SDK. Upgrading the Dart SDK ensures that you have access to the latest features, bug fixes, and performance improvements. Step 1: Check Your Current Dart SDK Version Before you begin the upgrade process, it’s …
- Why Do Advertisers Use Testimonials?In the ever-competitive business landscape, nurturing strong connections with your customers remains paramount for enhancing your credibility and positioning yourself as an industry authority. Establishing credibility is the bedrock upon which trust is built, ultimately translating into increased sales. To bolster your company’s credibility, integrating testimonial advertising into your marketing strategy is essential. So, what …
- How To Earn $5 Fast Method!Looking to boost your income by $25 in less than an hour? This isn’t the start of a clichéd sales pitch; it’s about discovering several quick and simple ways to earn $5 online within minutes. For instance, you can make five bucks by completing tasks such as taking brief surveys, participating in short website usability …
- What Does BMF Mean On TikTok? Latest Social Media AcronymsIn the fast-paced world of social media, acronyms are the language of choice, enabling users to communicate swiftly without the need for lengthy phrases. While classics like LOL and OMG are still in use, the younger generation on TikTok has introduced a new acronym into the mix: BMF. So, what exactly does BMF mean, and …