Es erstellt einen Shimmer-Effekt, der einen Ladezustand anzeigt. Verwenden Sie stattdessen Shimmer anstelle von Fortschrittsbalken oder üblichen Ladeprogressanzeigern für ein besseres Design und Benutzeroberfläche.
Aus öffentlichen Paketdaten erstellte Orientierung.
Flutter Shimmer ist ein Paket, das einen glatten, animierten Schimmer-Effekt zur Anzeige von Ladezuständen in Benutzeroberflächen bereitstellt. Anstelle traditioneller Fortschrittsbalken oder statischer Lader wird eine visuell ansprechende Gradientenanimation angeboten, die das Aussehen eines Ladeprozesses nachahmt und die Benutzererfahrung durch ein modernes, dynamisches Gefühl verbessert. Ideal für Platzhalter in Listen, Karten oder Bildern, hilft es, während des Datenabrufs die visuelle Kontinuität zu erhalten. Das Paket unterstützt alle wichtigen Plattformen, einschließlich Android, iOS, Web, macOS, Windows und Linux.
Anwendungsfälle
Ladeplätzen in Listen
Animierte Kartenplatzhalter
Bildladeanzeiger
Inhaltsgerüste in der Benutzeroberfläche
Verbesserung der wahrgenommenen Leistung
Hauptmerkmale
Glattes Gradienten-Schimmern-Animation
Anpassbare Schimmer-Richtung
Unterstützt mehrere Plattformen
Einfache Integration mit bestehenden Widgets
Konfigurierbare Schimmerfarbe und -intensität
Geeignet für
UI-Designer, die moderne Ladeeffekte suchen
Entwickler, die die App-Nutzererfahrung verbessern
Apps mit dynamischer Inhaltsladung
Prototyping interaktiver Bildschirme
Engagierende Onboarding-Erlebnisse schaffen
Hinweise
Nicht geeignet für die eigentliche Datenlade-Logik
Kann die Leistung beeinträchtigen, wenn übermäßig verwendet
Erfordert sorgfältige Gestaltung, um dem App-Theme zu entsprechen
Am besten mit angemessener Zeit und Kontext verwendet
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
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