yui 0.0.1

flutter yui #

flutter 项目基础UI 使用文档,该项目主要集合日常使用的个个场景做一个案例。方便查看,同时对一些基础UI进行简单封装方便使用


文件目录结构(以LIb文件说明) #

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  yui: ^0.0.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:yui/yui.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 25, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health suggestions

Fix lib/component/feedback/picker.dart. (-2.48 points)

Analysis of lib/component/feedback/picker.dart reported 5 hints:

line 36 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: YPicker.data, YPicker.dataSync, YPicker.childBuilder, YPicker.value, YPicker.okText, YPicker.dismissText, YPicker.title, YPicker.disabled, YPicker.cascade, YPicker.itemBuilder, YPicker.height

line 41 col 3: The class 'Future' wasn't exported from 'dart:core' until version 2.1, but this code is required to be able to run on earlier versions.

line 45 col 3: The class 'Future' wasn't exported from 'dart:core' until version 2.1, but this code is required to be able to run on earlier versions.

line 287 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: PickerItem.initialItem, PickerItem.data, PickerItem.itemBuilder, PickerItem.pickerState, PickerItem.index, PickerItem.lineHeight

line 365 col 15: The class 'Future' wasn't exported from 'dart:core' until version 2.1, but this code is required to be able to run on earlier versions.

Fix lib/component/feedback/toast.dart. (-1 points)

Analysis of lib/component/feedback/toast.dart reported 2 hints:

line 12 col 15: Redundant use of the annotation @required on the required positional parameter 'text'.

line 31 col 8: This method overrides a method annotated as @mustCallSuper in 'State', but doesn't invoke the overridden method.

Fix lib/example/_common/component_items.dart. (-1 points)

Analysis of lib/example/_common/component_items.dart reported 2 hints:

line 6 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: ComponentItemPage.title, ComponentItemPage.list

line 15 col 9: The value of the local variable 'textTheme' isn't used.

Fix additional 35 files with analysis or formatting issues. (-6 points)

Additional issues in the following files:

  • lib/example/form/form.dart (2 hints)
  • lib/main.dart (2 hints)
  • lib/component/basic/button.dart (1 hint)
  • lib/component/layout/cell.dart (1 hint)
  • lib/component/view/badge.dart (1 hint)
  • lib/example/_common/base.dart (1 hint)
  • lib/example/basic/button.dart (1 hint)
  • lib/example/layout/list_view.dart (1 hint)
  • lib/example/view/badge.dart (1 hint)
  • lib/example/view/noticebar.dart (1 hint)
  • lib/component/basic/app_warp.dart (Run flutter format to format lib/component/basic/app_warp.dart.)
  • lib/component/basic/font.dart (Run flutter format to format lib/component/basic/font.dart.)
  • lib/component/basic/icon.dart (Run flutter format to format lib/component/basic/icon.dart.)
  • lib/component/basic/theme.dart (Run flutter format to format lib/component/basic/theme.dart.)
  • lib/component/feedback/loading.dart (Run flutter format to format lib/component/feedback/loading.dart.)
  • lib/component/form/form.dart (Run flutter format to format lib/component/form/form.dart.)
  • lib/component/layout/card.dart (Run flutter format to format lib/component/layout/card.dart.)
  • lib/component/layout/container.dart (Run flutter format to format lib/component/layout/container.dart.)
  • lib/component/layout/grid_view.dart (Run flutter format to format lib/component/layout/grid_view.dart.)
  • lib/component/layout/list_view.dart (Run flutter format to format lib/component/layout/list_view.dart.)
  • lib/component/layout/row.dart (Run flutter format to format lib/component/layout/row.dart.)
  • lib/component/layout/row_and_column.dart (Run flutter format to format lib/component/layout/row_and_column.dart.)
  • lib/component/layout/stack.dart (Run flutter format to format lib/component/layout/stack.dart.)
  • lib/component/view/noticebar.dart (Run flutter format to format lib/component/view/noticebar.dart.)
  • lib/example/_common/config.dart (Run flutter format to format lib/example/_common/config.dart.)
  • lib/example/basic/icon.dart (Run flutter format to format lib/example/basic/icon.dart.)
  • lib/example/feedback/dialog.dart (Run flutter format to format lib/example/feedback/dialog.dart.)
  • lib/example/layout/card.dart (Run flutter format to format lib/example/layout/card.dart.)
  • lib/example/layout/cell.dart (Run flutter format to format lib/example/layout/cell.dart.)
  • lib/example/layout/column.dart (Run flutter format to format lib/example/layout/column.dart.)
  • lib/example/layout/container.dart (Run flutter format to format lib/example/layout/container.dart.)
  • lib/example/layout/grid_view.dart (Run flutter format to format lib/example/layout/grid_view.dart.)
  • lib/example/layout/row_and_column.dart (Run flutter format to format lib/example/layout/row_and_column.dart.)
  • lib/example/layout/stack.dart (Run flutter format to format lib/example/layout/stack.dart.)
  • lib/yui.dart (Run flutter format to format lib/yui.dart.)

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (flutter_markdown, flutter_spinkit).

The package description is too short. (-20 points)

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.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and yui.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Homepage URL is insecure. (-5 points)

Update the homepage field and use a secure (https) URL.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
fluro ^1.3.7 1.5.1
flutter 0.0.0
flutter_markdown ^0.2.0 0.2.0 0.3.2
flutter_spinkit ^3.1.0 3.1.0 4.1.1+1
Transitive dependencies
args 1.5.2
charcode 1.1.2
collection 1.14.11 1.14.12
markdown 2.1.3
meta 1.1.8
path 1.6.4
sky_engine 0.0.99
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies