adaptive_will_pop_scope 1.0.1 adaptive_will_pop_scope: ^1.0.1 copied to clipboard
Custom will pop scope widget to allow Apple user (iOS, iPad and macOs) uses the back gesture
import 'package:example/main_page.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) => MaterialApp(
title: 'Adaptive Will Pop Scope',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.blueGrey),
useMaterial3: true,
),
home: const MainPage(),
);
}