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 ↗