패키지, 저장소 및 앱 카테고리 검색

flutter_shimmer 표지
패키지 상세v2.1.2

flutter_shimmer

로딩 상태를 나타내는 쉐이머 효과를 생성합니다. 진행률 바나 일반적인 로더 대신 더 나은 디자인과 사용자 인터페이스를 위해 쉐이머를 사용하세요.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
850
좋아요
206
Pub 점수
140

패키지 설치

flutter pub add flutter_shimmer

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

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
# Shimmer Mode # Screenshot # Code Example
# Play Store Shimmer PlayStoreShimmer()
# Light Mode Shimmer ListTileShimmer()
# Dark Mode Shimmer ListTileShimmer(isDarkMode: true)
# Purplish Mode Shimmer ListTileShimmer(isPurplishMode: true)
# Purplish(Dark) Mode Shimmer ListTileShimmer(isPurplishMode: true,isDarkMode: true)
# CustomColor Mode ProfileShimmer(hasCustomColors: true,
      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

 #Color Mode
     There are three color mode in the flutter_shimmer package
      1. Light Mode
      2. Dark Mode
      3. Purplish Mode
      4. Custom Color Mode (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's false
    [isDisabledButton]: Note:- this property only used in ListTileShimmer. when it's true 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 for gradientColor by defult its value Alignment.topLeft
    [endAlign]: it will set the end value for gradientColor 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 true if 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

# For Custom Colors:
      for custom colors you need to take two steps

         Step 1: set 'hasCustomColors' property to true
         Step 2: 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 color
            Color(0xFF1769aa),
            // light color
            Color(0xFF4dabf5),
            // Medium color
            Color(0xFF2196f3)
          ],
        ),




1. ProfileShimmer

  1. Light Mode
    ProfileShimmer(),

  2. Dark Mode
    ProfileShimmer( isDarkMode: true,),

  3. PurplishMode with light Background

     ProfileShimmer(
      isPurplishMode: true,
   ),

  5. PurplishMode with dark Background

     ProfileShimmer(
      isPurplishMode: true,
      isDarkMode:true
   ),

 6. With Bottom Lines:

    ProfileShimmer(
      hasBottomLines: true,
   ),

 7. Combination of all options

    ProfileShimmer(
      isPurplishMode: true,
      hasBottomLines: true,
      isDarkMode: true,
   ),

2. ProfilePageShimmer

  1. Light Mode
    ProfilePageShimmer(),

  2. Dark Mode
    ProfilePageShimmer( isDarkMode: true,),

  3. PurplishMode with light Background

     ProfilePageShimmer(
      isPurplishMode: true,
   ),

  5. PurplishMode with dark Background

     ProfilePageShimmer(
      isPurplishMode: true,
      isDarkMode:true
   ),

 6. With Bottom Boxes:

    ProfilePageShimmer(
      hasBottomBox: true,
   ),

 7. Combination of all options

    ProfilePageShimmer(
      isPurplishMode: true,
      hasBottomLines: true,
      isDarkMode: true,
   ),

3. VideoShimmer

  1. Light Mode
    VideoShimmer(),

  2. Dark Mode
    VideoShimmer( isDarkMode: true,),

  3. PurplishMode with light Background

     VideoShimmer(
      isPurplishMode: true,
   ),

  5. PurplishMode with dark Background

     VideoShimmer(
      isPurplishMode: true,
      isDarkMode:true
   ),

 6. With Bottom Lines:

    VideoShimmer(
      hasBottomLines: true,
   ),

 7. Combination of all options

    VideoShimmer(
      isPurplishMode: true,
      hasBottomLines: true,
      isDarkMode: true,
   ),

4. ListTileShimmer

  1. Light Mode
    ListTileShimmer(),

  2. Dark Mode
    ListTileShimmer( isDarkMode: true,),

  3. PurplishMode with light Background

     ListTileShimmer(
      isPurplishMode: true,
   ),

  5. PurplishMode with dark Background

     ListTileShimmer(
      isPurplishMode: true,
      isDarkMode:true
   ),

 6. With Bottom Lines:

    ListTileShimmer(
      hasBottomLines: true,
   ),

 7. Combination of all options

    ListTileShimmer(
      isPurplishMode: true,
      hasBottomLines: true,
      isDarkMode: true,
   ),

5. PlayStoreShimmer

  1. Light Mode
    PlayStoreShimmer(),

  2. Dark Mode
    PlayStoreShimmer( isDarkMode: true,),

  3. PurplishMode with light Background

     PlayStoreShimmer(
      isPurplishMode: true,
   ),

  5. PurplishMode with dark Background

     PlayStoreShimmer(
      isPurplishMode: true,
      isDarkMode:true
   ),

 6. With Bottom Lines:
         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. With Multiple options

    PlayStoreShimmer(
      isPurplishMode: true,
      hasBottomLines: true,
      isDarkMode: true,
   ),
   Thank for your love and support
   if you have any suggestions let me know

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.