identity_loader 0.0.5 copy "identity_loader: ^0.0.5" to clipboard
identity_loader: ^0.0.5 copied to clipboard

A versatile loader widget that supports customizable animations and user avatars, allowing for a personalized and engaging loading experience in your app.

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.red),
      ),
      home: const MyHomePage(),
      debugShowCheckedModeBanner: false,
    );
  }
}
class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
          child: spinCircle()
      ),
    );
  }


  /// spinCircle
  Widget spinCircle() {
    return  IdentityLoader(
      indicatorColor: Colors.blue,
      indicatorStrokeWidth: 6.0,
      circleAvatarColor: Colors.white,
      circleAvatarRadius: 28,
      loaderImageWidget: Image.asset('asset/rider_images(2).png'),
      loaderType: LoaderType.spinCircle,
    );
  }

  /// spinFadeCircle
  Widget spinFadeCircle() {
    return  IdentityLoader(
      indicatorColor: Colors.blue,
      indicatorStrokeWidth: 6.0,
      circleAvatarColor: Colors.white,
      circleAvatarRadius: 28,
      loaderImageWidget: Image.asset('asset/rider_images(2).png'),
      loaderType: LoaderType.spinFadeCircle,
    );
  }

  /// circularIndicator
  Widget circularIndicator() {
    return  IdentityLoader(
      indicatorColor: Colors.blue,
      indicatorStrokeWidth: 6.0,
      circleAvatarColor: Colors.white,
      circleAvatarRadius: 28,
      loaderImageWidget: Image.asset('asset/rider_images(2).png'),
      loaderType: LoaderType.circularIndicator,
    );
  }

  /// dualWave
  Widget dualWave() {
    return  IdentityLoader(
      indicatorColor: Colors.blue,
      indicatorStrokeWidth: 6.0,
      circleAvatarColor: Colors.white,
      circleAvatarRadius: 28,
      loaderImageWidget: Image.asset('asset/rider_images(2).png'),
      loaderType: LoaderType.dualWave,
    );
  }

  /// circleBounce
  Widget circleBounce() {
    return  IdentityLoader(
      indicatorColor: Colors.blue,
      indicatorStrokeWidth: 6.0,
      circleAvatarColor: Colors.white,
      circleAvatarRadius: 28,
      loaderImageWidget: Image.asset('asset/rider_images(2).png'),
      loaderType: LoaderType.circleBounce,
    );
  }

}
4
likes
160
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

A versatile loader widget that supports customizable animations and user avatars, allowing for a personalized and engaging loading experience in your app.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on identity_loader