excellent_loading 1.0.1
excellent_loading: ^1.0.1 copied to clipboard
This package is use to show loading with awesome animation and it is only for use in my workplace. This package is just publish for testing.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:excellent_loading/flutter_excellentloading.dart';
void main() {
runApp(const MyApp());
// ExcellentLoading.instance
// ..displayDuration = const Duration(seconds: 3)
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return GetMaterialApp(
builder: ExcellentLoading.init(),
home: const Home(),
);
}
}
class Home extends StatelessWidget {
const Home({super.key});
@override
Widget build(BuildContext context) {
// FlutterEasyLoading
return Scaffold(
body: Column(
children: [
TextFormField(),
Center(
child: TextButton(
onPressed: () {
ExcellentLoading.show(
// status: 'Hello',
maskType: ExcellentLoadingMaskType.black);
Future.delayed(const Duration(seconds: 3), () {
ExcellentLoading.dismiss();
});
},
child: const Text('Show'))),
],
),
);
}
}