flutter_slide_swap 1.1.1

Flutter Android iOS web

Flutter widget that swaps children with each other in slide animation.

flutter_slide_swap #

Flutter widget that swaps children with each other in slide animation.

pub package

Getting Started #

To use this plugin, add flutter_slide_swap as a dependency in your pubspec.yaml file.

dependencies:
 flutter_slide_swap: 

Import the library in your file.

import 'package:flutter_slide_swap/flutter_slide_swap.dart';

See the example directory for a complete sample app using SlideSwap. Or use the SlideSwap like below.

SlideSwap(
  key: _globalKey,
  children: <Widget>[
    RaisedButton(
      key: keyA,
      onPressed: () {
        SlideSwap.of(context).swapOrder(0, 1);
      },
      child: Text('A'),
    ),
    RaisedButton(
      key: keyB,
      onPressed: () {
        _globalKey.currentState.swapWithKey(keyA, keyB);
      },
      child: Text('B'),
    ),
  ],
)
0
likes
110
pub points
36%
popularity

Publisher

zuvola.com

Flutter widget that swaps children with each other in slide animation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_slide_swap