πŸŒ€ ios_swipe

A lightweight Flutter package that brings iOS-style swipe-back navigation (like in native iPhone apps) to your Flutter pages β€” especially useful when using GoRouter.


πŸŽ₯ Demo

✨ Features

  • 🧭 Smooth iOS-style back-swipe gesture
  • πŸ’« Seamless integration with GoRouter
  • 🧱 Fully customizable transition
  • πŸ”₯ Works on both Android and iOS

πŸš€ Getting Started

Add this package directly from GitHub:

dependencies:
  ios_swipe:
   

OR

dependencies:
  ios_swipe:
    git:
      url: https://github.com/exeshka/ios_swipe.git
      ref: main

βΈ»

🧩 Usage Example

Integrate with GoRouter easily:

import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:ios_swipe/ios_swipe.dart';

final goRouter = GoRouter(
  initialLocation: FirstPage.path,
  routes: [
    GoRoute(
      path: FirstPage.path,
      name: FirstPage.name,
      pageBuilder: (context, state) => IosSwipePage(
        key: state.pageKey,
        child: const FirstPage(),
      ),
    ),
    GoRoute(
      path: SecondPage.path,
      name: SecondPage.name,
      pageBuilder: (context, state) => IosSwipePage(
        key: state.pageKey,
        child: const SecondPage(),
      ),
      routes: [
        GoRoute(
          path: OtherScreen.path,
          name: OtherScreen.name,
          pageBuilder: (context, state) => IosSwipePage(
            key: state.pageKey,
            child: const OtherScreen(),
          ),
        ),
      ],
    ),
  ],
);

βΈ»

πŸ“± Platform Support

iOS βœ…

Android βœ…

Web ❌

Desktop ⚠️ (Experimental)

βΈ»

❀️ Contributing

Pull requests and improvements are always welcome! If you find a bug or have an idea for improvement β€” feel free to open an issue.

βΈ»

πŸ“„ License

This package is distributed under the MIT License. See the LICENSE file for more information.

Libraries

ios_swipe