paralax 0.0.8+1 copy "paralax: ^0.0.8+1" to clipboard
paralax: ^0.0.8+1 copied to clipboard

Flutter Paralax Card

paralax #

Flutter Paralax Card

Install Package #


dependencies:
  paralax: ^0.0.8+1

Example Code #

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text("Paralax Card"),centerTitle: (0 == 0),),
        body: SafeArea(
          child: Column(
            children: [
              Expanded(child: ListView(
                physics: BouncingScrollPhysics(),
                children: List.generate(
                    15,
                        (index) => Padding(
                          padding: const EdgeInsets.symmetric(vertical: 4.0 , horizontal: 16),
                          child: ParalaxContainer(
                            aspectRatio: 16 / 16,
                             type: ParalaxType.ASSETS,
                            imageUrl: "assets/rov/${index + 1}.jpg",
                            radius: 16,
                            Positioned(
                        bottom: 20,
                        left: 20,
                        child: Column(
                          children: [
                            Text("What Waht Waht")
                          ],
                        ),
                      )
                          ),
                        )),
              ))
            ],
          ),
        ),
      ),
    );
  }
}

Paralax Container #

ParalaxContainer(
aspectRatio: 16 / 16,
 type: ParalaxType.ASSETS,
imageUrl: "assets/rov/${index + 1}.jpg",
 radius: 16,
      ),

Example #

4
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Flutter Paralax Card

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_svg

More

Packages that depend on paralax