diff --git a/lib/src/config/config.dart b/lib/src/config/config.dart index 4cb5304..0fdcc86 100644 --- a/lib/src/config/config.dart +++ b/lib/src/config/config.dart @@ -19,7 +19,7 @@ class PlayxThemeConfig { final bool migratePrefsToAsyncPrefs; /// Whether to log theme changes or not. - final bool logThemeChanges ; + final bool logThemeChanges; /// Creates a [PlayxThemeConfig] instance. /// diff --git a/lib/src/controller/controller.dart b/lib/src/controller/controller.dart index ef656e7..09ecee1 100644 --- a/lib/src/controller/controller.dart +++ b/lib/src/controller/controller.dart @@ -236,7 +236,7 @@ class XThemeController extends ValueNotifier { /// Throws an exception if the ID is not found. Future updateById( String id, { - PlayxThemeAnimation animation = const PlayxThemeAnimation.fade(), + PlayxThemeAnimation animation = const PlayxThemeAnimation.fade(), bool animate = true, bool forceUpdateNonAnimatedTheme = false, }) async { diff --git a/lib/src/playx_theme.dart b/lib/src/playx_theme.dart index a90ff43..f605227 100644 --- a/lib/src/playx_theme.dart +++ b/lib/src/playx_theme.dart @@ -1,9 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:playx_theme/src/config/config.dart'; import 'package:playx_theme/src/controller/controller.dart'; -import 'package:playx_theme/src/model/playx_colors.dart'; -import 'package:playx_theme/src/model/playx_theme_animation.dart'; -import 'package:playx_theme/src/model/x_theme.dart'; import '../playx_theme.dart'; diff --git a/lib/src/utils/build_context_extension.dart b/lib/src/utils/build_context_extension.dart index 62e24f9..c6f8148 100644 --- a/lib/src/utils/build_context_extension.dart +++ b/lib/src/utils/build_context_extension.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:playx_theme/playx_theme.dart'; @@ -24,10 +23,8 @@ extension BuildContextExtension on BuildContext { return xTheme.themeData; } - /// Returns Whether the current theme is a dark theme. - bool get isDarkMode{ + bool get isDarkMode { return xTheme.isDark; } - }