pop_scope_aware_cupertino_route 0.0.1 copy "pop_scope_aware_cupertino_route: ^0.0.1" to clipboard
pop_scope_aware_cupertino_route: ^0.0.1 copied to clipboard

outdated

an adjustment of the cupertino page transition to be usable with pop scope

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:pop_scope_aware_cupertino_route/pop_scope_aware_cupertino_route.dart';

import 'screens/home_screen.dart';

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

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

  final theme = ThemeData(
    pageTransitionsTheme: const PageTransitionsTheme(
      builders: {
        TargetPlatform.android: ZoomPageTransitionsBuilder(),
        TargetPlatform.iOS: PopScopeAwareCupertinoPageTransitionBuilder(),
      },
    ),
  );

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: theme,
      home: const HomeScreen(),
    );
  }
}
3
likes
0
points
107
downloads

Publisher

unverified uploader

Weekly Downloads

an adjustment of the cupertino page transition to be usable with pop scope

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on pop_scope_aware_cupertino_route