getThemeData method

ThemeData getThemeData()

Implementation

ThemeData getThemeData(){
  final isLightTheme = !isDarkTheme();
  return ThemeData(
      brightness: isLightTheme != false ? Brightness.light : Brightness.dark,
      primaryColor: theme.primary(),
      canvasColor: theme.card(),
      backgroundColor: theme.background(),
      accentColor: theme.primary(),
      // primarySwatch: theme.primaryVariant(),
      textTheme: theme.textTheme.getTextTheme(),
      fontFamily: theme.textTheme.fontFamily,
      colorScheme: theme.getColorScheme()
  );
}