Flutter Shimmer는 사용자 인터페이스에서 로딩 상태를 나타내기 위해 부드럽고 애니메이션된 반짝임 효과를 제공하는 패키지입니다. 전통적인 진행률 바나 정적 로더 대신, 콘텐츠가 로딩되는 것처럼 보이는 시각적으로 매력적인 그라디언트 애니메이션을 제공하여 현대적이고 역동적인 느낌으로 UX를 향상시킵니다. 리스트, 카드 또는 이미지의 플레이스홀더에 이상적이며, 데이터 가져오기 중에도 시각적 연속성을 유지하는 데 도움이 됩니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux 등 모든 주요 플랫폼을 지원합니다.
사용 사례
목록 내 로딩 자리표시자
애니메이션 카드 자리 표시자
이미지 로딩 인디케이터
UI의 콘텐츠 뼈대
인식된 성능 향상
주요 기능
부드러운 그라데이션 반짝임 애니메이션
사용자 지정 가능한 반짝임 방향
다수의 플랫폼을 지원합니다
기존 위젯과의 간편한 통합
사용자 정의 가능한 반짝임 색상 및 강도
적합한 대상
현대적인 로딩 효과를 찾는 UI 디자이너
앱 UX 향상에 기여하는 개발자
동적 콘텐츠 로딩을 가진 앱
인터랙티브 화면 프로토타이핑
매력적인 온보딩 경험 만들기
고려 사항
실제 데이터 로드 로직에 적합하지 않습니다
과도하게 사용할 경우 성능에 영향을 줄 수 있습니다
앱 테마와 일치시키기 위해 신중한 스타일링이 필요합니다
기본 애니메이션을 넘어서는 사용자 정의가 제한적
적절한 시기와 맥락에서 사용하는 것이 가장 좋습니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
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