File tree Expand file tree Collapse file tree
packages/dynamic_color/example/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import 'package:flutter/cupertino.dart' ;
12import 'package:flutter/material.dart' ;
23
34import 'accent_color.dart' ;
@@ -19,6 +20,18 @@ class ExampleApp extends StatelessWidget {
1920 Widget build (BuildContext context) {
2021 final textTheme = Theme .of (context).textTheme;
2122 return MaterialApp (
23+ theme: ThemeData (
24+ pageTransitionsTheme: const PageTransitionsTheme (
25+ builders: < TargetPlatform , PageTransitionsBuilder > {
26+ TargetPlatform .android: ZoomPageTransitionsBuilder (),
27+ TargetPlatform .iOS: CupertinoPageTransitionsBuilder (),
28+ // Clean fade transitions for Web/Desktop environments
29+ TargetPlatform .windows: FadeUpwardsPageTransitionsBuilder (),
30+ TargetPlatform .macOS: FadeUpwardsPageTransitionsBuilder (),
31+ TargetPlatform .linux: FadeUpwardsPageTransitionsBuilder (),
32+ },
33+ ),
34+ ),
2235 home: Scaffold (
2336 appBar: AppBar (title: const Text ('Examples' )),
2437 body: Center (
You can’t perform that action at this time.
0 commit comments