screen_brightness 1.0.1 copy "screen_brightness: ^1.0.1" to clipboard
screen_brightness: ^1.0.1 copied to clipboard

A Plugin for controlling screen brightness with application life cycle reset implemented

130/ 160
pub points
94.7k
downloads

We analyzed this package 20 hours ago, and awarded it 130 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

13 out of 14 API elements (92.9 %) have documentation comments.

Some symbols that are missing documentation: screen_brightness.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 4 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Linux`.

Because:

  • package:screen_brightness/screen_brightness.dart that declares support for platforms: Android, iOS, Windows, macOS.
Package does not support platform `Web`.

Because:

  • package:screen_brightness/screen_brightness.dart that declares support for platforms: Android, iOS, Windows, macOS.
Passed report section
Pass static analysis
50 / 50trigger folding of the section

Passed check 50/50 points: code has no errors, warnings, lints, or formatting issues

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
screen_brightness_android >=1.0.0 <2.0.0 1.0.1 2.1.3
screen_brightness_ios >=1.0.0 <2.0.0 1.0.1 2.1.2
screen_brightness_macos >=1.0.0 <2.0.0 1.0.1 2.1.1
screen_brightness_platform_interface >=1.0.0 <2.0.0 1.0.1 2.1.0
screen_brightness_windows >=1.0.0 <2.0.0 1.0.1 2.1.0
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.17.0
plugin_platform_interface - 2.1.8 2.1.8
vector_math - 2.2.0 2.2.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 5 issues. Showing the first 2:

The constraint `>=1.0.0 <2.0.0` on screen_brightness_android does not support the stable version `2.0.0`.

Try running dart pub upgrade --major-versions screen_brightness_android to update the constraint.

The constraint `>=1.0.0 <2.0.0` on screen_brightness_ios does not support the stable version `2.0.0`.

Try running dart pub upgrade --major-versions screen_brightness_ios to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 2 errors:

  • UNDEFINED_GETTER - lib/screen_brightness.dart:151:43 - The getter 'isAnimate' isn't defined for the type 'ScreenBrightnessPlatform'.
  • UNDEFINED_METHOD - lib/screen_brightness.dart:160:56 - The method 'setAnimate' isn't defined for the type 'ScreenBrightnessPlatform'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.5, Flutter 3.38.5, Dart 3.10.4.

Check the analysis log for details.

Weekly downloads

Display as:
By versions: