full_screen_back_gesture 0.0.2 copy "full_screen_back_gesture: ^0.0.2" to clipboard
full_screen_back_gesture: ^0.0.2 copied to clipboard

A Flutter package supports full screen swipe back gesture, without scrolling conflicts.

full_screen_back_gesture #

A Flutter package supports full screen swipe back gesture, without scrolling conflicts.

Features #

  • full screen swipe back gesture instead of edge swipe
  • will not block horizontal scroll gesture of Scrollable widgets

Usage #

When you use MaterialPageRoute for Navigator, you can custom page transitions,

Sets pageTransitionsTheme for MaterialApp theme.

MaterialApp(
  theme: ThemeData(
    pageTransitionsTheme: PageTransitionsTheme(
      builders: {
        TargetPlatform.android: FullScreenBackGesturePageTransitionsBuilder(),
        TargetPlatform.iOS: FullScreenBackGesturePageTransitionsBuilder(),
      },
    ),
  ),
);

Option 2 #

If you have to use CupertinoPageRoute for Navigator, import cupertino route form this package, There is only CupertinoPageRoute has been replaced.

import 'package:full_screen_back_gesture/cupertino.dart';

Navigator.of(context).push(CupertinoPageRoute(builder: (context) => MainPage())),
4
likes
120
pub points
64%
popularity

Publisher

unverified uploader

A Flutter package supports full screen swipe back gesture, without scrolling conflicts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on full_screen_back_gesture