ios_swipe 0.0.2
ios_swipe: ^0.0.2 copied to clipboard
Ios 26 swipe - go_router.
π 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.