# Change default PageTransition

sumber [https://stackoverflow.com/questions/50196913/how-to-change-navigation-animation-using-flutter](https://stackoverflow.com/questions/50196913/how-to-change-navigation-animation-using-flutter)



```dart
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Startup Name Generator Tile',
      home: RandomWords(),
      theme: new ThemeData(
        primaryColor: Colors.white,
        // Add the line below to get horizontal sliding transitions for routes.
        pageTransitionsTheme: PageTransitionsTheme(builders: {TargetPlatform.android: CupertinoPageTransitionsBuilder(),}),
      ),
    );
  }
}
```

