v0.0.3parallax_effect
適用於所有平台的視差效果動畫。
43喜歡 17近 30 天下載130Pub 分數
AndroidiOSWebmacOSWindowsLinux
ketan2411/parallax_effect open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
A Parallax effect package, Package is useful for animations for items in foreground, or background scrolling effect.
Parallax widget for Configurations:
ParallaxItemParallaxItem widget for Configurations:
TODO: Include short and useful examples for package users. Add longer examples
to /example folder.
class ParallaxExample extends StatefulWidget {
const ParallaxExample({Key? key}) : super(key: key);
@override
State<ParallaxExample> createState() => _ParallaxState();
}
class _ParallaxState extends State<ParallaxExample>
with TickerProviderStateMixin {
@override
Widget build(BuildContext context) {
return Parallax(
height: 400,
width: 400,
enableDrag: true,
items: List.generate(5,(index)=>
ParallaxItem(
factor:ParallaxFactor(0.05*index,0.05*index),
rotationFactor: ParallaxFactor(0,0.05*index),
child: Container(
height:50,
width:50,
color: Colors.green
)
)),
);
依賴清單 3 項
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗