identity_loader 0.0.5
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.
Identity Loader: #
A versatile loader widget that supports customizable animations and user avatars, allowing for a personalized and engaging loading experience in your app..
Features #
- Multiple loader animations:
- Spin Circle
- Spin Fade Circle
- Circular Progress Indicator
- Dual Wave
- Circle Bounce
- Customizable colors, sizes, and stroke widths.
- Supports an image or widget at the center of the loader.
Installation #
Add the following to your pubspec.yaml file:
dependencies:
identity_loader: latest_version
Then, run:
flutter pub get
Usage #
Import the package:
import 'package:identity_loader/identity_loader.dart';
Use IdentityLoader in your widget tree:
IdentityLoader(
indicatorColor: Colors.blue,
indicatorStrokeWidth: 6.0,
circleAvatarColor: Colors.white,
circleAvatarRadius: 28,
loaderImageWidget: Image.asset('assets/logo.png'),
loaderType: LoaderType.spinCircle,
)
Parameters #
| Parameter | Type | Default | Description |
|---|---|---|---|
| indicatorColor | Color? | Theme.of(context).primarycolor | Color of the loading indicator |
| indicatorStrokeWidth | double | 6.0 | Stroke width of the indicator |
| circleAvatarColor | Color? | Theme.of(context).primarycolor | Background color of the center avatar |
| circleAvatarRadius | double | 28 | Radius of the center avatar |
| loaderImageWidget | Widget | required | Widget displayed at the center of the loader |
| loaderImageHeight | double | 40 | Height of the loader image |
| loaderImageWidth | double | 40 | Width of the loader imag |
| loaderType | LoaderType | circularIndicator | Type of loading animation |
Example #
| SpinCircleFade | SpinCircle | CircleBounce |
|---|---|---|
![]() |
![]() |
![]() |
| DualWave | CircularIndicator |
|---|---|
![]() |
![]() |
Available Loader Types #
- LoaderType.spinCircle
- LoaderType.spinFadeCircle
- LoaderType.circularIndicator
- LoaderType.dualWave
- LoaderType.circleBounce
License #
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions #
Contributions, issues, and feature requests are welcome! Feel free to open an issue or a pull request.
Authors #




