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.iOS: CupertinoPageTransitionsBuilder(),
        TargetPlatform.macOS: CupertinoPageTransitionsBuilder(),
      },
    ),
  );
}