excellent_loading 0.0.9 copy "excellent_loading: ^0.0.9" to clipboard
excellent_loading: ^0.0.9 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:excellent_loading/excellent_loading.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';

void main() {
  runApp(const MyApp());

  ExcellentLoading.instance
    ..displayDuration = const Duration(seconds: 3)
    ..indicatorType = ExcellentLoadingIndicatorType.android
    ..loadingStyle = ExcellentLoadingStyle.custom
    ..radius = 15
    ..backgroundColor = Colors.white
    ..indicatorColor = Colors.blue
    ..boxShadow = []
    ..contentPadding = EdgeInsets.all(20)
    ..textColor = Colors.black;
}

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: Center(
          child: TextButton(
              onPressed: () {
                ExcellentLoading.show();
                Future.delayed(const Duration(seconds: 3), () {
                  ExcellentLoading.dismiss();
                });
              },
              child: const Text('Show'))),
    );
  }
}
2
likes
150
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on excellent_loading