rifcare_loading 2.0.0 copy "rifcare_loading: ^2.0.0" to clipboard
rifcare_loading: ^2.0.0 copied to clipboard

A lightweight and customizable Flutter package for displaying sleek and responsive alert dialog loading indicators. Designed to enhance user experience with smooth animations and easy integration, thi [...]

example/main.dart

import 'package:flutter/material.dart';
import 'package:rifcare_loading/rifcare_loading.dart';



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



class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: ExampleApp(),
    );
  }
}




class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: ElevatedButton(
          onPressed: (){
            RifcareLoading.simple(
              context: context,
              loadingColor: Colors.red,
              loadingText: 'Loading...',
              loadingTextSize: 18,
              backgroundColor: Colors.white,
              barrierDismissible: false,
              canPop: false,
              loadingTextColor: Colors.red,
              borderRadius: 10,
            );
          },
          child: Text(
            'Click Me'
          ),
        ),
      ),
    );
  }
}
5
likes
140
points
211
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight and customizable Flutter package for displaying sleek and responsive alert dialog loading indicators. Designed to enhance user experience with smooth animations and easy integration, this package is perfect for managing loading states in your Flutter apps.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, gap, lottie

More

Packages that depend on rifcare_loading