it creating Shimmer effect that indicate a loading status, so instead of using ProgressBar or usual loader use Shimmer for a better design and user interface.
Package selection guidance compiled from public package information, community data, and project usage.
Flutter Shimmer is a package that provides a smooth, animated shimmer effect to indicate loading states in user interfaces. Instead of traditional progress bars or static loaders, it offers a visually appealing gradient animation that mimics the look of content loading, enhancing UX with a modern, dynamic feel. Ideal for placeholders in lists, cards, or images, it helps maintain visual continuity during data fetching. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.
Use cases
Loading placeholders in lists
Animated card placeholders
Image loading indicators
Content skeletons in UI
Improving perceived performance
Key features
Smooth gradient shimmer animation
Customizable shimmer direction
Supports multiple platforms
Easy integration with existing widgets
Configurable shimmer color and intensity
Suitable for
UI designers seeking modern loading effects
Developers improving app UX
Apps with dynamic content loading
Prototyping interactive screens
Creating engaging onboarding experiences
Considerations
Not suitable for actual data loading logic
May impact performance if overused
Requires careful styling to match app theme
Limited customization beyond basic animations
Best used with proper timing and context
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
flutter_shimmer
flutter_shimmer package for creating Shimmer effect that indicate a loading status, so instead of using ProgressBar or usual loader use Shimmer for a better design and user interface.
Show some :heart: and star the repo to support the project
colors: [Color(0xFF651fff), Color(0xFF834bff), Color(0xFF4615b2)],
), |
// Step 1: set hasCustomColors property to true
hasCustomColors: true,
// Step 2: give 3 colors to colors property
colors: [
// Dark color
Color(0xFF618833),
// light color
Color(0xFFa2cf6e),
// Medium color
Color(0xFF8bc34a)
],
hasBottomLines: true,
// isDarkMode: true,
),|
Get Started
#ColorModeThere are three color mode in the flutter_shimmer package
1. LightMode2. DarkMode3. PurplishMode4. CustomColorMode (New)
# Optional Options:
[isRectBox]: when it is true then it will show Rectancle shape else(false) show circle shape by defult its value false
[isDarkMode]: when it is true then it will use black bg color otherwise it use transparent color by defult its value false
[isPurplishMode]: when it is true then it will use little bit purplish bg color otherwise it use transparent color by defult its value false
[isDisabledAvatar]: when it is true then it will hide circle avatar by default it'sfalse
[isDisabledButton]: Note:- this property only used in ListTileShimmer. when it'strue then it will hide right side button shape shimmer from ListTileShimmer by default it's contain false value.
[beginAlign]: it will set the begin value forgradientColor by defult its value Alignment.topLeft
[endAlign]: it will set the end value forgradientColor by defult its value Alignment.bottomRight
[hasBottomBox]: when it is true then it will show bottom Rect style Boxes otherwise its hide the Boxes by defult its value false
[padding]: it wiil set the padding of parent container by default its value 16.0 from all side(left,right,top,bottom)
[margin]: it wiil set the margin of parent container by default its value 16.0 from all side(left,right,top,bottom)
[hasCustomColors]: it will allow you to use custom colors by default its value is false. set trueif you want to use your own custom colors
[colors]: it will contains 3 colors list if you set "hasCustomColors" Property to true the your next step is give the list of colors to this colors property
Note: make sure the colors property contains only 3 colors not more or lesser than 3 othewise it will use its default colors
# ForCustomColors:
for custom colors you need to take two steps
Step1: set'hasCustomColors' property to trueStep2: give 3 colors to 'colors' property
# Example:
ListTileShimmer(
// Step 1: set hasCustomColors property to try
hasCustomColors: true,
// Step 2: give 3 colors to colors property
colors: [
// Dark colorColor(0xFF1769aa),
// light colorColor(0xFF4dabf5),
// Medium colorColor(0xFF2196f3)
],
),
1. LightModePlayStoreShimmer(),
2. DarkModePlayStoreShimmer( isDarkMode: true,),
3. PurplishModewith light BackgroundPlayStoreShimmer(
isPurplishMode: true,
),
5. PurplishModewith dark BackgroundPlayStoreShimmer(
isPurplishMode: true,
isDarkMode:true
),
6. WithBottomLines:
note: By deafult both lines are true
a) it will remove only first bottom line
ListTileShimmer(
hasBottomFirstLine:false
),
b) it will remove only second bottom line
ListTileShimmer(
hasBottomSecondLine:false
),
c) it will remove both bottom line
ListTileShimmer(
hasBottomFirstLine:false,
hasBottomSecondLine:false
),
7. WithMultiple options
PlayStoreShimmer(
isPurplishMode: true,
hasBottomLines: true,
isDarkMode: true,
),
Thank foryour love and support
if you have any suggestions letme know