v1.0.4paperfold
此套件提供了一個小部件,可將紙張折疊效果應用於其子項。
dasRicardo/flutter_paperfold open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
This package provides a widget which applies a paper fold effect on it's child. You can choose between horizontal and vertical fold direction. The number of strips has to be at least two.
Add paperfold as a dependency in your pubspec.yaml file. Or run pub add paperfold in your terminal.
Just add the widget to your tree and you're done :). Take a look at example to see more.
PaperFold(
mainAxis: PaperFoldMainAxis.vertical,
strips: 4,
foldValue: .5,
pixelRatio: 1,//works best if you query the device pixel ration with MediaQuery.of
child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(20)),
child: Container(
color: Colors.green,
height: 150,
child: ListView.builder(
itemCount: 30,
itemBuilder: (context, index) {
return Column(
children: [
Row(
children: const [
Icon(
Icons.translate,
size: 50,
),
Text("hello world, hello world")
],
),
],
);
},
),
),
),
);
Feel free to file any issues, bugs, or feature requests. All contributions are welcome :)
Special thanks to GwaedGlas for reviewing and sparring this package
依賴清單 4 項
{"sdk":"flutter"}^2.1.1—{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗