wx_button 2.0.3 wx_button: ^2.0.3 copied to clipboard
Restructure the Flutter Button to allow for simpler styling and theming, ensuring it's not limited to specific platforms.
We analyzed this package 29 hours ago, and awarded it 110 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: BSD-3-Clause
.
10/10 points: 20% or more of the public API has dartdoc comments
974 out of 1063 API elements (91.6 %) have documentation comments.
Some symbols that are missing documentation: wx_anchor
, wx_anchor.WxAnchor.effectiveStyle
, wx_anchor.WxAnchorStyle.toMap
, wx_anchor.WxAnchorThemeData.toMap
, wx_anchor.WxAnchorThemeDefault
.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
0/0 points: WASM compatibility
Unable to detect compatibility with runtime wasm
, and this package will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 4 issues. Showing the first 2:
ERROR: 'WxButtonStyle.copyWith' ('WxButtonStyle Function({bool? adaptiveForegroundColor, bool? adaptiveSpacing, Alignment? alignment, int? backgroundAlpha, Color? backgroundColor, double? backgroundOpacity, OutlinedBorder? border, int? borderAlpha, Color? borderColor, double? borderOffset, double? borderOpacity, BorderRadius? borderRadius, BorderStyle? borderStyle, double? borderWidth, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, Clip? clipBehavior, Axis? direction, double? elevation, Color? elevationColor, bool? flipX, bool? flipY, int? foregroundAlpha, Color? foregroundColor, double? foregroundOpacity, Gradient? gradient, double? height, Color? iconColor, double? iconOpacity, double? iconSize, DecorationImage? image, EdgeInsetsGeometry? margin, double? maxHeight, double? maxWidth, double? minHeight, double? minWidth, Offset? offset, double? opacity, Color? overlayColor, Size? overlayExtent, double? overlayOpacity, ShapeBorder? overlayShape, EdgeInsetsGeometry? padding, double? rotate, double? scale, Color? severity, List
lib/src/basic/style.dart:94:17
╷
94 │ WxButtonStyle copyWith({
│ ^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/basic/style.dart
ERROR: 'WxDrivenButtonStyle.copyWith' ('WxDrivenButtonStyle Function({bool? adaptiveForegroundColor, bool? adaptiveSpacing, Alignment? alignment, int? backgroundAlpha, Color? backgroundColor, double? backgroundOpacity, OutlinedBorder? border, int? borderAlpha, Color? borderColor, double? borderOffset, double? borderOpacity, BorderRadius? borderRadius, BorderStyle? borderStyle, double? borderWidth, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, Clip? clipBehavior, Axis? direction, WxButtonStyle? disabledStyle, double? elevation, Color? elevationColor, bool? flipX, bool? flipY, WxButtonStyle? focusedStyle, int? foregroundAlpha, Color? foregroundColor, double? foregroundOpacity, Gradient? gradient, double? height, WxButtonStyle? hoveredStyle, Color? iconColor, double? iconOpacity, double? iconSize, DecorationImage? image, bool? inherits, WxButtonStyle? loadingStyle, EdgeInsetsGeometry? margin, double? maxHeight, double? maxWidth, double? minHeight, double? minWidth, Offset? offset, double? opacity, Color? overlayColor, Size? overlayExtent, double? overlayOpacity, ShapeBorder? overlayShape, EdgeInsetsGeometry? padding, WxButtonStyle? pressedStyle, double? rotate, double? scale, Color? severity, List
lib/src/basic/style_driven.dart:166:23
╷
166 │ WxDrivenButtonStyle copyWith({
│ ^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/basic/style_driven.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
flutter |
flutter |
0.0.0 | 0.0.0 |
wx_sheet |
^4.7.0 |
4.8.0 | 4.8.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
animated_checkmark |
- | 3.1.0 | 3.1.0 |
animated_icon_theme |
- | 1.0.4 | 1.0.4 |
animated_transform |
- | 1.0.6 | 1.0.6 |
characters |
- | 1.3.0 | 1.4.0 |
collection |
- | 1.19.0 | 1.19.1 |
lerp |
- | 0.0.2 | 0.0.2 |
material_color_utilities |
- | 0.11.1 | 0.12.0 |
meta |
- | 1.15.0 | 1.16.0 |
sky_engine |
- | 0.0.0 | 0.0.0 |
vector_math |
- | 2.1.4 | 2.1.4 |
widget_event |
- | 2.0.1 | 2.0.1 |
wx_anchor |
- | 2.1.1 | 2.1.1 |
wx_box |
- | 4.2.0 | 4.2.0 |
wx_tile |
- | 2.0.0 | 2.0.0 |
wx_utils |
- | 0.0.4 | 0.0.4 |
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
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade
does not expose any static analysis error.
Analyzed with Pana 0.22.17
, Flutter 3.27.1
, Dart 3.6.0
.
Check the analysis log for details.