swipe_to_back 0.0.1 copy "swipe_to_back: ^0.0.1" to clipboard
swipe_to_back: ^0.0.1 copied to clipboard

A simple to use flutter package that helps you to implement swipe up or down to go back like twitter.

Swipe to go back #

A simple to use flutter package that helps you to implement swipe up or down to go back like twitter.

Demo #

Video

Getting Started #

Just navigate to the vertical swipe page provided by the package like in the example below:

onTap: () => Navigator.of(context).push(
        MaterialPageRoute(
            builder: (context) => const VerticalSwipeBackPage(
                ...[params]
        ),
    ),
),

The parameters are:

  ///A [bool] flag to set whether the info button on the top right should be rendered or not
  final bool showInfoIcon;

  ///A callback to be executed when the info button is clicked
  final FutureOr<void> Function()? infoIconCallback;

  ///Background [Color] applied to the page scaffold
  final Color? backgroundColor;

  ///Fixed Widget that does not move as page is dragged vertically
  final Widget? fixedWidget;

  ///A list of bottom action [Widget] (s)
  final List<Widget>? bottomActions;

  ///The main [Widget] child of the page that needs to be dragged
  final Widget child;
2
likes
150
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

A simple to use flutter package that helps you to implement swipe up or down to go back like twitter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_bloc

More

Packages that depend on swipe_to_back