canary_oklch 0.0.5
canary_oklch: ^0.0.5 copied to clipboard
A Flutter package for working with OKLCH color space, providing utilities for color conversion, palette generation, and UI components with OKLCH color support.
We analyzed this package 7 hours ago, and awarded it 60 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
52 out of 117 API elements (44.4 %) have documentation comments.
Some symbols that are missing documentation: canary_oklch, canary_oklch.OklchColor.OklchColor.new, canary_oklch.OklchPalette.OklchPalette.new, canary_oklch.TailwindStyles.TailwindStyles.new, canary_oklch.TailwindStyles.borderRadius.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 24 issues. Showing the first 2:
ERROR: The argument type 'CardTheme' can't be assigned to the parameter type 'CardThemeData?'.
lib/ui.dart:38:18
╷
38 │ cardTheme: CardTheme(
│ ┌──────────────────^
39 │ │ elevation: 0,
40 │ │ shape: RoundedRectangleBorder(
41 │ │ borderRadius: TailwindStyles.borderRadius['lg']!,
42 │ │ ),
43 │ │ color: colorScheme.surface,
44 │ │ ),
│ └───────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/ui.dart
ERROR: The argument type 'TabBarTheme' can't be assigned to the parameter type 'TabBarThemeData?'.
lib/ui.dart:190:20
╷
190 │ tabBarTheme: TabBarTheme(
│ ┌────────────────────^
191 │ │ labelColor: colorScheme.primary,
192 │ │ unselectedLabelColor:
193 │ │ isDark ? OklchPalette.gray[400] : OklchPalette.gray[600],
194 │ │ indicatorColor: colorScheme.primary,
195 │ │ labelStyle: TailwindStyles.fontSize['sm']!.copyWith(
196 │ │ fontWeight: FontWeight.w600,
197 │ │ ),
198 │ │ unselectedLabelStyle: TailwindStyles.fontSize['sm']!.copyWith(
199 │ │ fontWeight: FontWeight.w500,
200 │ │ ),
201 │ │ ),
│ └───────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/ui.dart
10/10 points: All of the package dependencies are supported in the latest version
No dependencies.
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
characters |
- | 1.4.1 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
material_color_utilities |
- | 0.13.0 | 0.13.0 | |
meta |
- | 1.17.0 | 1.18.2 | |
vector_math |
- | 2.2.0 | 2.3.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 3 errors:
ARGUMENT_TYPE_NOT_ASSIGNABLE-lib/ui.dart:38:18- The argument type 'CardTheme' can't be assigned to the parameter type 'CardThemeData?'.ARGUMENT_TYPE_NOT_ASSIGNABLE-lib/ui.dart:190:20- The argument type 'TabBarTheme' can't be assigned to the parameter type 'TabBarThemeData?'.ARGUMENT_TYPE_NOT_ASSIGNABLE-lib/ui.dart:231:20- The argument type 'DialogTheme' can't be assigned to the parameter type 'DialogThemeData?'.
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.11, Flutter 3.41.4, Dart 3.11.1.
Check the analysis log for details.