Last updated:
0 purchases
parallax widget
A widget to wrap your widget with a parallax effect.
Getting started #
This package depends on sensors_plus
To use this plugin add it to the dependencies in your pubspec.yaml file.
Example #
Usage #
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: ParallaxWidget(Image.asset("assets/img.png", height: 400, width: 300,), 400, 300),
),
);
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.