How to solve: Swipe to go back gesture flutter

Question

Asked by Tom O on April 17, 2018 (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

Question answered by Tom O (source).

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?)

BACK DART FLUTTER SWIPE-GESTURE
SHARE: