ios_willpop_transition_theme 0.0.5 copy "ios_willpop_transition_theme: ^0.0.5" to clipboard
ios_willpop_transition_theme: ^0.0.5 copied to clipboard

A Flutter package to solve the conflict between ios sliding back and Willpop.

iOS Willpop Transition Builder #

A Flutter package to solve the conflict between ios sliding back and Willpop.

related issue: #14203

pub package GitHub stars GitHub forks FlutterCandies

1. Take effect globally #

Override builders of PageTransitionsTheme

@override
Widget build(BuildContext context) {
      return MaterialApp(
            title: 'Flutter Example',
            theme: ThemeData(
                  /// Set as needed
                  pageTransitionsTheme: const PageTransitionsTheme(
                        builders: {
                              TargetPlatform.iOS: IOSWillPopTransitionsBuilder(),
                              TargetPlatform.android: IOSWillPopTransitionsBuilder(),
                              TargetPlatform.macOS: IOSWillPopTransitionsBuilder(),
                        },
                  ),
            ),
            home: const Home(),
      );
}

2. Local effect #

Use WillPopPageRoute

Navigator.of(context).push(WillPopPageRoute(
      builder: (_) => const TestPage(),
));
12
likes
130
pub points
76%
popularity

Publisher

verified publisherfluttercandies.com

A Flutter package to solve the conflict between ios sliding back and Willpop.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on ios_willpop_transition_theme