followLatestSpec method

ThemeData followLatestSpec()

Create ThemeData which follows latest Material Design Spec.

Implementation

ThemeData followLatestSpec() {
  return copyWith(
    snackBarTheme: snackBarTheme.copyWith(
      behavior: SnackBarBehavior.floating,
    ),
    splashFactory: InkSparkle.splashFactory,
    pageTransitionsTheme: const PageTransitionsTheme(
      builders: {
        TargetPlatform.android: FadeForwardsPageTransitionsBuilder(),
        TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
        TargetPlatform.macOS: CupertinoPageTransitionsBuilder(),
      },
    ),
    progressIndicatorTheme: progressIndicatorTheme.copyWith(year2023: false),
    sliderTheme: sliderTheme.copyWith(year2023: false),
  );
}