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.



class _MyHomePageState extends State<MyHomePage> {

  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),