yaru_widgets 2.7.0 copy "yaru_widgets: ^2.7.0" to clipboard
yaru_widgets: ^2.7.0 copied to clipboard

discontinuedreplaced by: yaru

Common flutter widgets useful for building desktop and web applications.

58
likes
70/ 160
pub points
720
downloads

We analyzed this package 2 days ago, and awarded it 70 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

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: yaru_widgets,
    • contains a version property, and,
    • does not contain a publish_to property.

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

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/ubuntu/yaru_widgets.dart/issues was unreachable. Make sure that the website is reachable via HEAD requests.

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: MPL-2.0.

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

723 out of 977 API elements (74.0 %) have documentation comments.

Some symbols that are missing documentation: constants, foundation, widgets, yaru_widgets, yaru_widgets.YaruAppBarBuilder.

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 4 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

These platforms are not supported:

Package does not support platform `Android`.

Because:

  • package:yaru_widgets/yaru_widgets.dart that imports:
  • package:yaru_widgets/widgets.dart that imports:
  • package:yaru_widgets/src/widgets/yaru_window_control.dart that imports:
  • package:yaru/yaru.dart that imports:
  • package:yaru/src/widgets/inherited_theme.dart that imports:
  • package:yaru/src/settings.dart that imports:
  • package:gtk/gtk.dart that declares support for platforms: Linux.
Package does not support platform `iOS`.

Because:

  • package:yaru_widgets/yaru_widgets.dart that imports:
  • package:yaru_widgets/widgets.dart that imports:
  • package:yaru_widgets/src/widgets/yaru_window_control.dart that imports:
  • package:yaru/yaru.dart that imports:
  • package:yaru/src/widgets/inherited_theme.dart that imports:
  • package:yaru/src/settings.dart that imports:
  • package:gtk/gtk.dart that declares support for platforms: Linux.

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Windows`.

Because:

  • package:yaru_widgets/yaru_widgets.dart that imports:
  • package:yaru_widgets/widgets.dart that imports:
  • package:yaru_widgets/src/widgets/yaru_window_control.dart that imports:
  • package:yaru/yaru.dart that imports:
  • package:yaru/src/widgets/inherited_theme.dart that imports:
  • package:yaru/src/settings.dart that imports:
  • package:gtk/gtk.dart that declares support for platforms: Linux.
Package does not support platform `macOS`.

Because:

  • package:yaru_widgets/yaru_widgets.dart that imports:
  • package:yaru_widgets/widgets.dart that imports:
  • package:yaru_widgets/src/widgets/yaru_window_control.dart that imports:
  • package:yaru/yaru.dart that imports:
  • package:yaru/src/widgets/inherited_theme.dart that imports:
  • package:yaru/src/settings.dart that imports:
  • package:gtk/gtk.dart that declares support for platforms: Linux.
Package does not support platform `Web`.

Because:

  • package:yaru_widgets/yaru_widgets.dart that imports:
  • package:yaru_widgets/widgets.dart that imports:
  • package:yaru_widgets/src/widgets/yaru_window_control.dart that imports:
  • package:yaru/yaru.dart that imports:
  • package:yaru/src/widgets/inherited_theme.dart that imports:
  • package:yaru/src/settings.dart that imports:
  • package:gtk/gtk.dart that declares support for platforms: Linux.

Failed check 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 report section
Pass static analysis
0 / 50trigger folding of the section

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

Found 210 issues. Showing the first 2:

ERROR: The type 'SlottedMultiChildRenderObjectWidgetMixin' is declared with 2 type parameters, but 1 type arguments were given.

lib/src/widgets/yaru_toggle_button_layout.dart:34:10

   ╷
34 │     with SlottedMultiChildRenderObjectWidgetMixin<_YaruToggleButtonSlot> {
   │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

ERROR: '_YaruToggleButtonLayout.childForSlot' ('Widget? Function(_YaruToggleButtonSlot)') isn't a valid override of 'SlottedMultiChildRenderObjectWidgetMixin.childForSlot' ('Widget? Function(dynamic)').

lib/src/widgets/yaru_toggle_button_layout.dart:55:11

   ╷
55 │   Widget? childForSlot(_YaruToggleButtonSlot slot) {
   │           ^^^^^^^^^^^^
   ╵

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

Failed report section
Support up-to-date dependencies
10 / 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
yaru >=0.10.0 <1.0.0 0.10.0 7.0.0
yaru_icons >=1.0.0 <3.0.0 2.4.0 2.4.0 Discontinued
yaru_window ^0.1.1 0.1.3 0.2.1+1
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.0
collection - 1.19.1 1.19.1
ffi - 2.1.4 2.1.4
gtk - 2.1.0 2.1.0
json_annotation - 4.9.0 4.9.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.16.0 1.16.0
path - 1.9.1 1.9.1
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
screen_retriever - 0.2.0 0.2.0
screen_retriever_linux - 0.2.0 0.2.0
screen_retriever_macos - 0.2.0 0.2.0
screen_retriever_platform_interface - 0.2.0 0.2.0
screen_retriever_windows - 0.2.0 0.2.0
vector_math - 2.1.4 2.1.5
window_manager - 0.4.3 0.4.3
yaru_window_linux - 0.1.3 0.2.1
yaru_window_manager - 0.1.2+1 0.1.2+1
yaru_window_platform_interface - 0.1.2+1 0.1.2+1
yaru_window_web - 0.0.3+1 0.0.3+1

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

Found 3 issues. Showing the first 2:

The constraint `>=0.10.0 <1.0.0` on yaru does not support the stable version `1.0.0`.

Try running dart pub upgrade --major-versions yaru to update the constraint.

The constraint `^0.1.1` on yaru_window does not support the stable version `0.2.0`.

Try running dart pub upgrade --major-versions yaru_window to update the constraint.

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

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 3 errors:

  • WRONG_NUMBER_OF_TYPE_ARGUMENTS - lib/src/widgets/yaru_toggle_button_layout.dart:34:10 - The type 'SlottedMultiChildRenderObjectWidgetMixin' is declared with 2 type parameters, but 1 type arguments were given.
  • INVALID_OVERRIDE - lib/src/widgets/yaru_toggle_button_layout.dart:55:11 - '_YaruToggleButtonLayout.childForSlot' ('Widget? Function(_YaruToggleButtonSlot)') isn't a valid override of 'SlottedMultiChildRenderObjectWidgetMixin.childForSlot' ('Widget? Function(dynamic)').
  • WRONG_NUMBER_OF_TYPE_ARGUMENTS - lib/src/widgets/yaru_toggle_button_layout.dart:85:10 - The type 'SlottedContainerRenderObjectMixin' is declared with 2 type parameters, but 1 type arguments were given.

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.20, Flutter 3.29.2, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
58
likes
70
points
720
downloads

Publisher

verified publisherubuntu.com

Weekly Downloads

Common flutter widgets useful for building desktop and web applications.

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

flutter, yaru, yaru_icons, yaru_window

More

Packages that depend on yaru_widgets