circularprogressindicator flutter code example
Example 1: circularprogressindicator color
CircularProgressIndicator(
valueColor:AlwaysStoppedAnimation<Color>(Colors.red),
);
Example 2: flutter CircularProgressIndicator
CircularProgressIndicator(
backgroundColor: Color(0xff000000),
valueColor:
AlwaysStoppedAnimation<Color>(Color(0xfffd7013)))
Example 3: circular container flutter
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State {
double padValue = 0;
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text("Container as a Circle"),
),
body: Container(
margin: EdgeInsets.all(100.0),
decoration: BoxDecoration(
color: Colors.orange,
shape: BoxShape.circle
),
)
),
);
}
}