loading 1.0.2 loading: ^1.0.2 copied to clipboard
A flutter widget of loading progress Indicator. Easy to use, easy to extend
import 'package:flutter/material.dart';
import 'package:loading/loading.dart';
import 'package:loading/indicator/ball_pulse_indicator.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: ShowLoading(),
);
}
}
class ShowLoading extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: AppBar(
title: Text('Loading View'),
),
body: Center(
child: Loading(indicator: BallPulseIndicator(), size: 100.0),
));
}
}