pop_scope_aware_cupertino_route 0.0.1
pop_scope_aware_cupertino_route: ^0.0.1 copied to clipboard
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(),
);
}
}