flutter_dominant_color_container 1.0.0 copy "flutter_dominant_color_container: ^1.0.0" to clipboard
flutter_dominant_color_container: ^1.0.0 copied to clipboard

The Dominant Color Container is a custom Flutter widget that dynamically extracts the dominant color from an image and applies it as the background color of a container. This widget enhances UI design [...]

130/ 160
pub points
167
downloads

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

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

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

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

10331 out of 10431 API elements (99.0 %) have documentation comments.

Some symbols that are missing documentation: flutter_dominant_color_container, flutter_dominant_color_container.ActivateAction.ActivateAction.new, flutter_dominant_color_container.AnimatedGridState.AnimatedGridState.new, flutter_dominant_color_container.AnimatedListState.AnimatedListState.new, flutter_dominant_color_container.AnimatedWidgetBaseState.AnimatedWidgetBaseState.new.

Passed check 10/10 points: Package has an example

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

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Web`.

Because:

  • package:flutter_dominant_color_container/flutter_dominant_color_container.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:flutter_dominant_color_container/flutter_dominant_color_container.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.cn/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

INFO: Don't use 'BuildContext's across async gaps.

lib/src/utils/functions.dart:125:39

    ╷
125 │     final file = await returnSvgToPng(context: context, svgString: svgString);
    │                                       ^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/utils/functions.dart

INFO: Don't invoke 'print' in production code.

lib/src/utils/functions.dart:133:5

    ╷
133 │     print(paletteGenerator.dominantColor!.color.toString());
    │     ^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/utils/functions.dart

Failed report section
Support up-to-date dependencies
30 / 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
flutter_svg ^2.0.10+1 2.2.2 2.2.2
http ^1.2.2 1.5.0 1.5.0
image ^4.2.0 4.5.4 4.5.4
palette_generator ^0.3.3+4 0.3.3+7 0.3.3+7 Discontinued
path_provider ^2.1.2 2.1.5 2.1.5
xml ^6.5.0 6.6.1 6.6.1
Transitive dependencies
Package Constraint Compatible Latest Notes
archive - 4.0.7 4.0.7
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
ffi - 2.1.4 2.1.4
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
path - 1.9.1 1.9.1
path_parsing - 1.1.0 1.1.0
path_provider_android - 2.2.20 2.2.20
path_provider_foundation - 2.4.3 2.4.3
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
petitparser - 7.0.1 7.0.1
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
posix - 6.0.3 6.0.3
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_graphics - 1.1.19 1.1.19
vector_graphics_codec - 1.1.13 1.1.13
vector_graphics_compiler - 1.1.19 1.1.19
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
xdg_directories - 1.1.0 1.1.0

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

The package has one or more discontinued direct dependencies.

Discontinued packages are no longer maintained, and can end up being a liability.

Consider migrating away from these dependencies:

  • palette_generator.

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.1, Flutter 3.35.7, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
8
likes
130
points
167
downloads

Publisher

unverified uploader

Weekly Downloads

The Dominant Color Container is a custom Flutter widget that dynamically extracts the dominant color from an image and applies it as the background color of a container. This widget enhances UI design by automatically adapting to the primary color scheme of images, making it ideal for creating visually cohesive layouts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_svg, http, image, palette_generator, path_provider, xml

More

Packages that depend on flutter_dominant_color_container