搜尋套件、儲存庫與 APP 分類

flutter_shimmer 封面
套件詳情v2.1.2

flutter_shimmer

它創建了一個閃爍效果,用於指示加載狀態。因此,與使用進度條或常規加載器相比,使用閃爍效果可獲得更好的設計和使用者介面。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
850
喜歡數
206
Pub 分數
140

安裝套件

flutter pub add flutter_shimmer

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Flutter Shimmer 是一個提供平滑、動畫閃爍效果的套件,用於在使用者介面中表示載入狀態。與傳統的進度條或靜態載入器不同,它提供一種視覺上吸引人的漸變動畫,模擬內容載入的外觀,透過現代、動態的感覺提升使用者體驗。非常適合用於清單、卡片或圖片中的佔位符,在資料取得期間維持視覺連續性。此套件支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。

適用情境

  • 列表中的載入佔位符
  • 動畫卡片佔位符
  • 圖像加載指示器
  • UI中的內容骨架
  • 提升感知效能

主要特色

  • 平滑漸變閃爍動畫
  • 可自定義的閃爍方向
  • 支援多個平台
  • 與現有小部件的輕鬆整合
  • 可設定的閃爍顏色和強度

適合對象

  • 尋求現代加載效果的UI設計師
  • 開發者改善應用程式使用者體驗
  • 動態內容加載的應用程式
  • 原型設計互動式螢幕
  • 創造引人入勝的入門體驗

使用建議

  • 不適合用於實際的資料載入邏輯
  • 如果過度使用,可能會影響效能
  • 需要仔細的樣式設定以符合應用主題
  • 超出基本動畫之外的自訂功能有限
  • 最佳使用時機與情境

原始 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

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。