Flutter CircularProgressIndicator Widget

Flutter CircularProgressIndicator Widget is just like Android ProgressBar. It is used to process some Task in background and wait for Result type for User. here is the basic example :

import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Welcome to Flutter',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Flutter Circular Progress Indicator Example'),
        ),
        body: Center(
      child: CircularProgressIndicator()
    ),
      ),
    );
  }
}

The output of this above code is :

Flutter CircularProgressIndicator

If you want to process Data in background and want to show Progress to User. This widget is useful. To Toggle Widget you can check this Link :

Share

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *