Skip to main content

adaptive_will_pop 1.0.0 copy "adaptive_will_pop: ^1.0.0" to clipboard
adaptive_will_pop: ^1.0.0 copied to clipboard

Custom will pop scope widget to allow Apple user (iOS, iPad and macOs) uses the back gesture

example/lib/main.dart

import 'package:example/main_page.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  static late double screenWidth;

  @override
  Widget build(BuildContext context) => MaterialApp(
        title: 'Adaptive Will Pop',
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.blueGrey),
          useMaterial3: true,
        ),
        home: const MainPage(),
        builder: (buildContext, child) {
          screenWidth = MediaQuery.of(buildContext).size.width;
          return child!;
        },
      );
}
0
likes
140
points
54
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Custom will pop scope widget to allow Apple user (iOS, iPad and macOs) uses the back gesture

Repository (GitHub)

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on adaptive_will_pop