diff --git a/lib/bootstrap/extensions.dart b/lib/bootstrap/extensions.dart index 9928b33..f9f548f 100644 --- a/lib/bootstrap/extensions.dart +++ b/lib/bootstrap/extensions.dart @@ -18,14 +18,6 @@ extension NyText on Text { extension NyApp on BuildContext { /// Get the current theme color ColorStyles get color => ThemeColor.get(this); - - /// Check if the device is in dark mode - bool get isThemeDark { - if (this.isDeviceInDarkMode) return true; - - return ThemeProvider.controllerOf(this).currentThemeId == - getEnv('DARK_THEME_ID'); - } } /// [TextStyle] Extensions diff --git a/pubspec.lock b/pubspec.lock index 625fae2..e59e258 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -194,10 +194,10 @@ packages: dependency: transitive description: name: equatable - sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2 + sha256: "567c64b3cb4cf82397aac55f4f0cbd3ca20d77c6c03bedbc4ceaddc08904aef7" url: "https://pub.dev" source: hosted - version: "2.0.5" + version: "2.0.7" error_stack: dependency: transitive description: @@ -390,10 +390,10 @@ packages: dependency: transitive description: name: get_time_ago - sha256: "71296a1931e844efc7fced1e943db822dc8ae3c8e5cbf6acc4db1d6533b556a1" + sha256: "0f50a87080a720f5491266a3f7c79109f95943decd10b66c84b5aef802f1d959" url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "2.1.1" glob: dependency: transitive description: @@ -534,18 +534,18 @@ packages: dependency: "direct main" description: name: nylo_framework - sha256: f795d406ef060b0996e82593013f40d077d580e2e966977c74e7b37b62cf5af9 + sha256: "77fc805b282aac3298a2768a2d1b60a3953851f05484553d63c7322a15c7cb77" url: "https://pub.dev" source: hosted - version: "6.2.2" + version: "6.2.3" nylo_support: dependency: transitive description: name: nylo_support - sha256: "11868391689a8d380bc29f384cec2999bd2bf6ee6b2cb9be34bbee3884b1d052" + sha256: "253edc164e5465772972c93f0f2e219a46699bf950ad434ec934486da7685273" url: "https://pub.dev" source: hosted - version: "6.4.0" + version: "6.5.0" package_config: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index ede0790..fc88e0c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -19,7 +19,7 @@ dependencies: google_fonts: ^6.2.1 analyzer: ^6.7.0 intl: ^0.19.0 - nylo_framework: ^6.2.2 + nylo_framework: ^6.2.3 pretty_dio_logger: ^1.4.0 cupertino_icons: ^1.0.8 path_provider: ^2.1.4