tx_design 0.2.26
tx_design: ^0.2.26 copied to clipboard
A custom component library that contains some basic UI components and provides theme configuration.
We analyzed this package 9 hours ago, and awarded it 90 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
1756 out of 2403 API elements (73.1 %) have documentation comments.
Some symbols that are missing documentation: action_bar, action_bar.TxActionBar.TxActionBar.new, action_bar_theme, action_bar_theme.TxActionBarTheme.data, action_bar_theme.TxActionBarThemeData.TxActionBarThemeData.new.
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/50 points: code has no errors, warnings, lints, or formatting issues
Found 465 issues. Showing the first 2:
ERROR: A value of type 'InputDecorationThemeData' can't be returned from the function 'inputDecorationTheme' because it has a return type of 'InputDecorationTheme?'.
lib/form/form_field.dart:564:7
╷
564 │ ┌ theme.inputDecorationTheme.merge(
565 │ │ InputDecorationTheme(
566 │ │ hintStyle: theme.textTheme.bodyLarge!.copyWith(
567 │ │ color: MaterialStateColor.resolveWith((states) =>
568 │ │ states.contains(MaterialState.disabled)
569 │ │ ? theme.disabledColor
570 │ │ : theme.hintColor),
571 │ │ ),
572 │ │ outlineBorder: BorderSide(color: theme.colorScheme.outlineVariant),
573 │ │ enabledBorder: InputBorder.none,
574 │ │ border: InputBorder.none,
575 │ │ focusedBorder: InputBorder.none,
│ └────────────────────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/form/form_field.dart
ERROR: The argument type 'InputDecorationTheme' can't be assigned to the parameter type 'InputDecorationThemeData?'.
lib/form/form_field.dart:565:9
╷
565 │ ┌ InputDecorationTheme(
566 │ │ hintStyle: theme.textTheme.bodyLarge!.copyWith(
567 │ │ color: MaterialStateColor.resolveWith((states) =>
568 │ │ states.contains(MaterialState.disabled)
569 │ │ ? theme.disabledColor
570 │ │ : theme.hintColor),
571 │ │ ),
572 │ │ outlineBorder: BorderSide(color: theme.colorScheme.outlineVariant),
573 │ │ enabledBorder: InputBorder.none,
574 │ │ border: InputBorder.none,
575 │ │ focusedBorder: InputBorder.none,
576 │ │ focusedErrorBorder: InputBorder.none,
│ └───────────────────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/form/form_field.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
equatable |
^2.0.5 |
2.0.8 | 2.0.8 |
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.18.0 | |
vector_math |
- | 2.2.0 | 2.2.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 8 errors:
RETURN_OF_INVALID_TYPE-lib/form/form_field.dart:564:7- A value of type 'InputDecorationThemeData' can't be returned from the function 'inputDecorationTheme' because it has a return type of 'InputDecorationTheme?'.ARGUMENT_TYPE_NOT_ASSIGNABLE-lib/form/form_field.dart:565:9- The argument type 'InputDecorationTheme' can't be assigned to the parameter type 'InputDecorationThemeData?'.INVALID_ASSIGNMENT-lib/widgets/tab_bar.dart:36:37- A value of type 'TabBarThemeData' can't be assigned to a variable of type 'TabBarTheme'.
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.8, Flutter 3.38.6, Dart 3.10.7.
Check the analysis log for details.