get_loading 0.1.0 copy "get_loading: ^0.1.0" to clipboard
get_loading: ^0.1.0 copied to clipboard

A light-weight loading/toast widget for Flutter, based on get_module

example/example.dart

import 'package:get/get.dart';
import 'package:get_loading/get_loading.dart';
import 'package:get_module/get_module.dart';

void main() async {
  // method 1
  GetModuleLoader([
    GetLoadingModule(),
  ]);

  // method 2
  GetLoadingModule().install();

  Get.loading.show(status: 'text');
  Get.loading.hide(animation: false);

  Get.loading.toast('text');
  Get.loading.success('text');
  Get.loading.error('text');
  Get.loading.info('text');
  Get.loading.progress(0.75, status: 'text');

  final result = await Get.loading(() async {
    await Future.delayed(const Duration(milliseconds: 1000));
    return 1;
  });
}
0
likes
160
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

A light-weight loading/toast widget for Flutter, based on get_module

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_easyloading, get, get_event_bus, get_module

More

Packages that depend on get_loading