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 ↗