djade007/loader_skeleton
一個類似 Facebook 與 Twitter 的卡片載入閃爍骨架庫。
- Stars
- 2
- Forks
- 3
- 最近推送(UTC)
- 2021年5月24日
- 專案狀態
- 未封存
語言Dart
使用的依賴
依賴清單 2 項
- flutter
{"sdk":"flutter"} - flutter_test開發依賴
{"sdk":"flutter"}
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
展開 / 收合專案 README
SkeletonLoader
A Facebook & Twitter Like Card Loading Shimmer Skeleton Library.
💻 Installation
In the dependencies: section of your pubspec.yaml, add the following line:
loader_skeleton: <latest_version>
❔ Usage
Light Theme
CardSkeleton
https://raw.githubusercontent.com/djade007/loader_skeleton/master/gifs/g1.gifimport 'package:loader_skeleton/loader_skeleton.dart';
//Widget
CardSkeleton(
isCircularImage: true,
isBottomLinesActive: true,
)
CardListSkeleton
https://raw.githubusercontent.com/djade007/loader_skeleton/master/gifs/g2.gifimport 'package:loader_skeleton/loader_skeleton.dart';
//Widget
CardListSkeleton(
isCircularImage: true,
isBottomLinesActive: true,
length: 10,
)
CardProfileSkeleton
https://raw.githubusercontent.com/djade007/loader_skeleton/master/gifs/g3.gifimport 'package:loader_skeleton/loader_skeleton.dart';
//Widget
CardProfileSkeleton(
isCircularImage: true,
isBottomLinesActive: true,
)
CardPageSkeleton
https://raw.githubusercontent.com/djade007/loader_skeleton/master/gifs/g4.gifimport 'package:loader_skeleton/loader_skeleton.dart';
//Widget
CardPageSkeleton(
totalLines: 5,
)
Dark Theme
To use dark theme in your app. Simply provide brightness to dark in your Material App Widget or use Theme Widget.
Enable Dark Theme
ThemeData(
brightness: Brightness.dark,
),
DarkCardSkeleton
https://raw.githubusercontent.com/djade007/loader_skeleton/master/gifs/g5.gifimport 'package:loader_skeleton/loader_skeleton.dart';
//Widget
DarkCardSkeleton(
isCircularImage: true,
isBottomLinesActive: true,
)
DarkCardListSkeleton
https://raw.githubusercontent.com/djade007/loader_skeleton/master/gifs/g6.gifimport 'package:loader_skeleton/loader_skeleton.dart';
//Widget
DarkCardListSkeleton(
isCircularImage: true,
isBottomLinesActive: true,
length: 10,
)
DarkCardProfileSkeleton
https://raw.githubusercontent.com/djade007/loader_skeleton/master/gifs/g7.gifimport 'package:loader_skeleton/loader_skeleton.dart';
//Widget
DarkCardProfileSkeleton(
isCircularImage: true,
isBottomLinesActive: true,
)
DarkCardPageSkeleton
https://raw.githubusercontent.com/djade007/loader_skeleton/master/gifs/g8.gifimport 'package:loader_skeleton/loader_skeleton.dart';
//Widget
DarkCardPageSkeleton(
totalLines: 5,
)
👍 How to Contribute
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Getting Started
For help getting started with Flutter, view our online documentation.
For help on editing package code, view the documentation.