turn_page_transition 0.1.0 turn_page_transition: ^0.1.0 copied to clipboard
This package provide simple Page-Turning Transition to your app.
import 'package:example/routes.dart';
import 'package:example/ui/first_page.dart';
import 'package:flutter/material.dart';
import 'package:turn_page_transition/turn_page_transition.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
final routes = Routes.routes();
return MaterialApp.router(
title: 'TurnPageTransition Example',
debugShowCheckedModeBanner: false,
theme: ThemeData(
pageTransitionsTheme: const TurnPageTransitionsTheme(),
primarySwatch: Colors.blue,
),
routeInformationParser: routes.routeInformationParser,
routerDelegate: routes.routerDelegate,
);
}
}