Search packages, repositories and app categories

animated_shimmer cover
Package detailsv1.0.0

animated_shimmer

A simple & lightweight widget to display a animated shimmer effect.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
189
Likes
67
Pub points
140

Install package

flutter pub add animated_shimmer

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Animated Shimmer is a lightweight Flutter package that provides a simple widget to create smooth, animated shimmer effects—commonly used for loading placeholders in UIs. It mimics the appearance of content loading by animating a gradient across a container, giving users visual feedback during data fetching. The package is easy to integrate and supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. Ideal for improving perceived performance in apps with delayed content rendering.

Use cases

  • Loading placeholders in lists
  • Skeleton screens for product cards
  • Visual feedback during data fetching
  • Enhancing UX in slow-loading sections
  • Placeholder animations in profile views

Key features

  • Simple API with minimal setup
  • Smooth gradient animation
  • Cross-platform compatibility
  • Lightweight size
  • Customizable shimmer direction and color
  • Supports any child widget

Suitable for

  • Developers building UIs with loading states
  • Apps needing skeleton screens
  • Projects prioritizing performance and simplicity
  • Designers enhancing user experience with subtle animations
  • Mobile and web applications with dynamic content

Considerations

  • Not suitable for complex animations
  • Limited customization beyond basic properties
  • May impact performance on very large lists
  • Requires manual handling of state management
  • Best used sparingly to avoid visual clutter

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Animated Shimmer

pub package Libraries.io dependency status for latest release License

Supports Null Safety

A simple & lightweight widget to display an animated shimmer effect.

Making a skeleton of a widget with shimmer effect while loading data from server or any other source is a common task that can be easily done with AnimatedShimmer widget. AnimatedShimmer is a simple yet very useful Widget that developers can use it to create an awesome animated shimmer effect for any widget skeleton loading.

Examples

An example can be found in the example directory of this repository.

More examples will be added soon!

Loading List

How to use

Add animated_shimmer to pubspec.yaml of your project:

dependencies:
  animated_shimmer: ^1.0.0

Import it in your Dart code:

import 'package:animated_shimmer/animated_shimmer.dart';

Declare AnimatedShimmer widget with required height and width:

  AnimatedShimmer(
    height: 10,
    width: 120,
  ),

A number of parameters can be passed to customise the look and feel of this animation:

  AnimatedShimmer(
    height: 10,
    width: 120,
    borderRadius: const BorderRadius.all(Radius.circular(16)),
    delayInMilliSeconds: Duration(milliseconds: index * 500),
  ),

To create round AnimaiedShimmer :

  AnimatedShimmer.round(
    size: 50,
  ),
Parameters:
  • @required height : accepts a double to set height of the shimmer effect
  • @required width : accepts a double to set width of the shimmer effect
  • startColor : accepts a Color and sets the start color of the shimmer effect from which animation will start
  • endColor : accepts a Color and sets the end color of the shimmer effect to which animation will end
  • borderRadius : accepts a borderRadius and sets the border radius of the animated shimmer widget
  • delayInMilliSeconds : accepts a Duration that would be the delay in starting the animation. Default value is Duration(milliseconds: 0)

A detailed API Reference can be found on pub.dev

License

MIT License

Copyright (c) 2022 Shubham Soni

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Categories

Source repository

Projects using this package

No data available yet.