loading_progress_indicator 0.1.5 copy "loading_progress_indicator: ^0.1.5" to clipboard
loading_progress_indicator: ^0.1.5 copied to clipboard

a flutter widget to indicate loading progress. Easy to use, easy to extend

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:loading_progress_indicator/loading_progress_indicator.dart';

import 'package:loading_progress_indicator/progress_indicator/ball_beat_progress_indicator.dart';
import 'package:loading_progress_indicator/progress_indicator/ball_grid_pulse_progress_indicator.dart';
import 'package:loading_progress_indicator/progress_indicator/ball_pulse_progress_indicator.dart';
import 'package:loading_progress_indicator/progress_indicator/ball_scale_multiple_progress_indicator.dart';
import 'package:loading_progress_indicator/progress_indicator/ball_scale_progress_indicator.dart';
import 'package:loading_progress_indicator/progress_indicator/ball_spin_fade_loader_progress_indicator.dart';
import 'package:loading_progress_indicator/progress_indicator/line_scale_party_progress_indicator.dart';
import 'package:loading_progress_indicator/progress_indicator/line_scale_progress_indicator.dart';
import 'package:loading_progress_indicator/progress_indicator/line_scale_pulse_out_progress_indicator.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Loading Progress Indicator'),
        ),
        body: LoadingProgressList(),
      ),
    );
  }
}

class LoadingProgressList extends StatelessWidget {
  final indicatorProgressList = [
    BallPulseProgressIndicator(),
    BallBeatProgressIndicator(),
    BallGridPulseProgressIndicator(),
    BallScaleProgressIndicator(),
    BallScaleMultipleProgressIndicator(),
    BallSpinFadeLoaderProgressIndicator(),
    LineScaleProgressIndicator(),
    LineScalePartyProgressIndicator(),
    LineScalePulseOutProgressIndicator(),
  ];

  LoadingProgressList({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
      child: GridView.builder(
        gridDelegate:
            const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
        itemCount: indicatorProgressList.length,
        itemBuilder: (context, index) {
          return Center(
            child: LoadingProgressIndicator(
              indicator: indicatorProgressList[index],
              size: 50,
              color: Colors.deepPurple,
            ),
          );
        },
      ),
    );
  }
}
2
likes
120
pub points
70%
popularity

Publisher

unverified uploader

a flutter widget to indicate loading progress. Easy to use, easy to extend

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on loading_progress_indicator