slide_scroll_stack 0.1.0 copy "slide_scroll_stack: ^0.1.0" to clipboard
slide_scroll_stack: ^0.1.0 copied to clipboard

Scroll and stack widgets as you slide each widget up, down, left and right.

slide_scroll_stack #

Widget that slides and scrolls to stack.

How to use #

import 'package:slide_scroll_stack/slide_scroll_stack.dart';

SlideScrollStack(
  children: <Widget>[
    Card(
      child: FlutterLogo(
        colors: Colors.red,
      ),
    ),
    Card(
      child: FlutterLogo(
        colors: Colors.blue,
      ),
    ),
    Card(
      child: FlutterLogo(
        colors: Colors.green,
      ),
    )
  ],
)

How to change slide direction, you can set the slideDirection.

SlideScrollStack(
  slideDirection: SlideDirection.left,
  children: <Widget>[
    Card(
      child: FlutterLogo(
        colors: Colors.red,
      ),
    ),
    Card(
      child: FlutterLogo(
        colors: Colors.blue,
      ),
    ),
    Card(
      child: FlutterLogo(
        colors: Colors.green,
      ),
    )
  ],
)

You can change the ratio of the size of the main widget to the next widget by specifying the rate.

SlideScrollStack(
  rate: 1 / 2,
  children: <Widget>[
    Card(
      child: FlutterLogo(
        colors: Colors.red,
      ),
    ),
    Card(
      child: FlutterLogo(
        colors: Colors.blue,
      ),
    ),
    Card(
      child: FlutterLogo(
        colors: Colors.green,
      ),
    )
  ],
)
3
likes
40
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

Scroll and stack widgets as you slide each widget up, down, left and right.

Homepage

License

MIT (license)

Dependencies

flutter, provider

More

Packages that depend on slide_scroll_stack