Swipe to go back gesture flutter

Tom O'Sullivan picture Tom O'Sullivan · Apr 17, 2018 · Viewed 10.9k times · Source

How do i implement the swipe from the left to go back gesture in flutter? Not sure if it was already implemented automatically for iOS, but I wanted it for Android as well (as things are becoming gesture based).

Answer

Tom O'Sullivan picture Tom O'Sullivan · Jan 13, 2019

Use CupertinoPageRoute to make it work on Android;

import 'package:flutter/cupertino.dart';

(as answered on How to implement swipe to previous page in Flutter?)