my_tdesign_flutter 0.0.3 copy "my_tdesign_flutter: ^0.0.3" to clipboard
my_tdesign_flutter: ^0.0.3 copied to clipboard

tdesign flutter component

2
likes
70/ 160
pub points
15
downloads

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

failed
Follow Dart file conventions
10 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: my_tdesign_flutter,
    • contains a version property, and,
    • does not contain a publish_to property.

Repository has no matching pubspec.yaml with name: my_tdesign_flutter.

0/5 points: Provide a valid README.md

`README.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of README.md in your package should primarily contain characters used in English.

0/5 points: Provide a valid CHANGELOG.md

No `CHANGELOG.md` found.

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

1107 out of 1740 API elements (63.6 %) have documentation comments.

Some symbols that are missing documentation: tdesign_flutter, tdesign_flutter.Chinese2Formatter.maxLength, tdesign_flutter.DatePickerCallback, tdesign_flutter.DatePickerModel, tdesign_flutter.DatePickerModel.DatePickerModel.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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 not compatible with platform Web

Because:

  • package:my_tdesign_flutter/tdesign_flutter.dart that imports:
  • package:my_tdesign_flutter/src/util/platform_util.dart that imports:
  • dart:io

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.

failed
Pass static analysis
0 / 50trigger folding of the section

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

Found 58 issues. Showing the first 2:

ERROR: 'TDSliderThemeData.copyWith' ('TDSliderThemeData Function({Color? activeTickMarkColor, Color? activeTrackColor, SliderInteraction? allowedInteraction, Color? disabledActiveTickMarkColor, Color? disabledActiveTrackColor, Color? disabledInactiveTickMarkColor, Color? disabledInactiveTrackColor, TextStyle? disabledScaleTextStyle, Color? disabledSecondaryActiveTrackColor, Color? disabledThumbColor, TextStyle? disabledThumbTextStyle, int? divisions, Color? inactiveTickMarkColor, Color? inactiveTrackColor, double? max, double? min, double? minThumbSeparation, WidgetStateProperty

lib/src/components/slider/td_slider_theme.dart:130:21

    ╷
130 │   TDSliderThemeData copyWith({
    │                     ^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/components/slider/td_slider_theme.dart

ERROR: The getter 'bodyText1' isn't defined for the type 'TextTheme'.

lib/src/components/tabs/td_horizontal_tab_bar.dart:47:40

   ╷
47 │             themeData.primaryTextTheme.bodyText1!)
   │                                        ^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/components/tabs/td_horizontal_tab_bar.dart

failed
Support up-to-date dependencies
20 / 40trigger folding of the section

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

Package Constraint Compatible Latest
collection ^1.17.2 1.19.0 1.19.1
flutter flutter 0.0.0 0.0.0
flutter_easyrefresh ^2.2.1 2.2.2 2.2.2
flutter_swiper_null_safety ^1.0.2 1.0.2 1.0.2
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.4.0
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

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 4 errors:

  • INVALID_OVERRIDE - lib/src/components/slider/td_slider_theme.dart:130:21 - 'TDSliderThemeData.copyWith' ('TDSliderThemeData Function({Color? activeTickMarkColor, Color? activeTrackColor, SliderInteraction? allowedInteraction, Color? disabledActiveTickMarkColor, Color? disabledActiveTrackColor, Color? disabledInactiveTickMarkColor, Color? disabledInactiveTrackColor, TextStyle? disabledScaleTextStyle, Color? disabledSecondaryActiveTrackColor, Color? disabledThumbColor, TextStyle? disabledThumbTextStyle, int? divisions, Color? inactiveTickMarkColor, Color? inactiveTrackColor, double? max, double? min, double? minThumbSeparation, WidgetStateProperty<MouseCursor?>? mouseCursor, Color? overlappingShapeStrokeColor, Color? overlayColor, SliderComponentShape? overlayShape, RangeSliderThumbShape? rangeThumbShape, RangeSliderTickMarkShape? rangeTickMarkShape, RangeSliderTrackShape? rangeTrackShape, RangeSliderValueIndicatorShape? rangeValueIndicatorShape, String Function(double)? scaleFormatter, TextStyle? scaleTextStyle, Color? secondaryActiveTrackColor, bool? showScaleValue, bool? showThumbValue, ShowValueIndicator? showValueIndicator, Color? thumbColor, Thumb? Function(TextDirection, RangeValues, double, Size, Size, double)? thumbSelector, SliderComponentShape? thumbShape, TextStyle? thumbTextStyle, SliderTickMarkShape? tickMarkShape, double? trackHeight, SliderTrackShape? trackShape, Color? valueIndicatorColor, SliderComponentShape? valueIndicatorShape, TextStyle? valueIndicatorTextStyle})') isn't a valid override of 'SliderThemeData.copyWith' ('SliderThemeData Function({Color? activeTickMarkColor, Color? activeTrackColor, SliderInteraction? allowedInteraction, Color? disabledActiveTickMarkColor, Color? disabledActiveTrackColor, Color? disabledInactiveTickMarkColor, Color? disabledInactiveTrackColor, Color? disabledSecondaryActiveTrackColor, Color? disabledThumbColor, Color? inactiveTickMarkColor, Color? inactiveTrackColor, double? minThumbSeparation, WidgetStateProperty<MouseCursor?>? mouseCursor, Color? overlappingShapeStrokeColor, Color? overlayColor, SliderComponentShape? overlayShape, RangeSliderThumbShape? rangeThumbShape, RangeSliderTickMarkShape? rangeTickMarkShape, RangeSliderTrackShape? rangeTrackShape, RangeSliderValueIndicatorShape? rangeValueIndicatorShape, Color? secondaryActiveTrackColor, ShowValueIndicator? showValueIndicator, Color? thumbColor, Thumb? Function(TextDirection, RangeValues, double, Size, Size, double)? thumbSelector, SliderComponentShape? thumbShape, SliderTickMarkShape? tickMarkShape, double? trackHeight, SliderTrackShape? trackShape, Color? valueIndicatorColor, SliderComponentShape? valueIndicatorShape, Color? valueIndicatorStrokeColor, TextStyle? valueIndicatorTextStyle})').
  • UNDEFINED_GETTER - lib/src/components/tabs/td_horizontal_tab_bar.dart:47:40 - The getter 'bodyText1' isn't defined for the type 'TextTheme'.
  • UNDEFINED_GETTER - lib/src/components/tabs/td_horizontal_tab_bar.dart:52:40 - The getter 'bodyText1' isn't defined for the type 'TextTheme'.

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.22.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.