# getCurrentTheme function

Future <TupleTheme> getCurrentTheme ()

Returns name of current theme

## Implementation

    Future<TupleTheme> getCurrentTheme() async {
      SharedPreferences prefs = await SharedPreferences.getInstance();
      String themeName = prefs.getString('theme');
      print(themeName);
      if (themeName == null)
        return defaultTheme;
      else
        for (var i = 0; i < ThemeNames.length; i++)
          if (ThemeNames[i].name == themeName) return ThemeNames[i];

      return defaultTheme;
    }