decorated_flutter 0.4.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 82

framework #

A new Flutter package.

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

[0.4.0]

  • feature: 增加Delayed, Toggleable的widget;
  • enhancement: [break change] runtime_scaffold使用泛型来获取bloc
  • feature: 增加DisposeBag
  • enhancement: barrierDismissible可配置
  • enhancement: loading默认可以通过返回键退出
  • enhancement: BLoCProvider提供dispose回调; feature: 增加async mixin, 简化StreamBuilder的写法

[0.3.2]

  • enhancement: decorated_flex增加divider参数; decorated_screen的init参数bug; image_view的assetImage默认不使用fit; 废弃shadowed_box
  • feature: 增加decorated_screen; decorated_flex增加forceItemSameExtent
  • enhancement: deprecate ioList; 增加topBottomBorder和leftRightBorder
  • enhancement: OutputMixin的listen方法返回StreamSubscription
  • enhancement: 所有的类add方法都返回处理过后的值.

[0.3.1]

  • feature: 增加BoolIO
  • enhancement: 增加appendAll方法;
  • 增加flatMap方法;
  • 去除StreamListView中increment相关代码;
  • DecoratedFlex增加scrollable参数;
  • 增加clearFocus方法

[0.3.0]

  • enhancement: [break change] _ItemBuilder的第二参数换成index, data移动到第三个参数
  • enhancement: ListMixin增加一些方法
  • chore: 提升dart版本到2.2.2
  • enhancement: 完善AdvancedNetworkImage的参数

[0.2.0]

  • enhancement: [break change] bloc_io中的Output系列, 加上一个update时的参数泛型
  • bugfix: SnapList的padding参数增加默认值
  • enhancement: ImageView增加异步获取IconData的构造器
  • enhancement: ImageView增加异步获取图片地址的构造器
  • enhancement: ImageView如果图片地址全都为null, 那就不显示
  • feature: ImageView增加icon构造器
  • bugfix: io中add数据前, 先判断内部subject是否已经被close.
  • enhancement: 使用flushbar代替原生的snackbar
  • feature: ImageView增加networkSvg构造器
  • feature: 增加Blur的widget

[0.1.10]

  • enhancement: 优化打印日志内容
  • enhancement: decorated_route增加onConnectivityChanged参数
  • enhancement: 增加一些透明颜色的shortcut
  • feature: 增加enumName
  • feature: 增加区分运行模式的类
  • enhancement: BaseIO中该私有的成员私有化
  • enhancement: ShowUpTransition增加safe area的选项

[0.1.9]

  • enhancement: 增强preferred_async_builder的错误日志打印
  • enhancement: 整理Codec
  • enhancement: 更新BLoCProvider的实现
  • feature: Codec增加base64相关, 并且获取byte的时候一律使用utf8.encode而不是直接codeUnits
  • feature: 增加信息摘要的方法
  • enhancement: isNotEmpty -> != null
  • feature: 增加ImageView封装Image和Svg的widget.

[0.1.8]

  • feature: io增加addStream方法
  • feature: 增加codec类

[0.1.7]

  • feature: 增加loadingPlaceholder 自定义loading的widget
  • feature: preferred_async_view增加loadingPlaceholder参数
  • feature: cover_card初步, shadowed_box默认参数调整
  • feature: 增加alias.dart
  • feature: 增加animation
  • enhancement: 增加insertFromHead参数
  • enhancement: 增加startWithDivider参数

[0.1.6]

  • enhancement: reverse和divider配合
  • enhancement: async_list_view.widget的itemBuilder增加lastData参数
  • enhancement: 优化StreamListView的incremental相关功能
  • feature: 增加notification_badge
  • enhancement: decorated_flex的expanded -> crossExpanded, 语义准确一点

[0.1.5]

  • chore: 提升dio版本
  • feature: async_list_view增加endWithDivider参数, 配置列表结尾是否有divider
  • bugfix: withDefaultTabController的assert的bug
  • feature: decorated_route增加withDefaultTabController和tabLength参数
  • enhancement: BLoC标记为@immutable
  • [break change] chore: trigger -> fetch

[0.1.4]

  • enhancement: 升级依赖
  • bugfix: DecoratedFlex的onPressed问题

[0.1.3]

  • bugfix: async_list_view的bug处理
  • enhancement: dio升级2.0.2
  • enhancement: [break change] 去除cached_network_image; 错误处理方法优化
  • enhancement: StreamListView默认ScrollController
  • enhancement: [break change] showMessage方法的exitTo参数换成String类型的路由参数, 替换Deprecated的Type参数

[0.1.2]

  • enhancement: 增加Value类, 把一些简单的StatefulWidget转换回StatelessWidget;
  • enhancement: [break change] DecoratedFlex的onTap和onLongPressed重命名为onPressed和onLongPressed, 并且传入BuildContext参数.
  • feature: DecoratedFlex增加expanded参数, 控制是否Expanding
  • feature: DecoratedFlex增加visible参数, 控制是否显示
  • feature: async_list_view增加incremental和distinct参数, 分别控制是否增长列表和列表元素是否唯一

Use this package as a library

1. Depend on it

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


dependencies:
  decorated_flutter: ^0.4.0

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:decorated_flutter/decorated_flutter.dart';
  
Version Uploaded Documentation Archive
0.4.0 Jun 16, 2019 Go to the documentation of decorated_flutter 0.4.0 Download decorated_flutter 0.4.0 archive
0.3.2 May 10, 2019 Go to the documentation of decorated_flutter 0.3.2 Download decorated_flutter 0.3.2 archive
0.3.1 Apr 27, 2019 Go to the documentation of decorated_flutter 0.3.1 Download decorated_flutter 0.3.1 archive
0.3.0+2 Apr 25, 2019 Go to the documentation of decorated_flutter 0.3.0+2 Download decorated_flutter 0.3.0+2 archive
0.3.0 Apr 25, 2019 Go to the documentation of decorated_flutter 0.3.0 Download decorated_flutter 0.3.0 archive
0.2.0 Apr 20, 2019 Go to the documentation of decorated_flutter 0.2.0 Download decorated_flutter 0.2.0 archive
0.1.10 Apr 15, 2019 Go to the documentation of decorated_flutter 0.1.10 Download decorated_flutter 0.1.10 archive
0.1.9 Apr 4, 2019 Go to the documentation of decorated_flutter 0.1.9 Download decorated_flutter 0.1.9 archive
0.1.8 Apr 1, 2019 Go to the documentation of decorated_flutter 0.1.8 Download decorated_flutter 0.1.8 archive
0.1.7 Mar 27, 2019 Go to the documentation of decorated_flutter 0.1.7 Download decorated_flutter 0.1.7 archive

All 22 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
71
Health:
Code health derived from static analysis. [more]
97
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
82
Learn more about scoring.

We analyzed this package on Jun 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.1
  • pana: 0.12.17
  • Flutter: 1.5.4-hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/src/bloc/bloc.dart. (-1.99 points)

Analysis of lib/src/bloc/bloc.dart reported 4 hints:

line 23 col 37: 'Event' is deprecated and shouldn't be used.

line 34 col 5: 'globalBLoCList' is deprecated and shouldn't be used.

line 53 col 5: 'ioList' is deprecated and shouldn't be used.

line 72 col 5: 'ioList' is deprecated and shouldn't be used.

Fix lib/src/router/route_parser.dart. (-0.50 points)

Analysis of lib/src/router/route_parser.dart reported 1 hint:

line 31 col 51: 'parseRoute' is deprecated and shouldn't be used.

Fix lib/src/ui/free/free_check_box.widget.dart. (-0.50 points)

Analysis of lib/src/ui/free/free_check_box.widget.dart reported 1 hint:

line 49 col 10: The value of the local variable 'size' isn't used.

Fix lib/src/ui/picker/picker.dart. (-0.50 points)

Analysis of lib/src/ui/picker/picker.dart reported 1 hint:

line 557 col 7: Name non-constant identifiers using lowerCamelCase.

Maintenance suggestions

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 decorated_flutter.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
connectivity ^0.4.2+2 0.4.3+2
crypto ^2.0.6 2.0.6
dio ^2.1.3 2.1.7
encrypt ^2.0.0 2.2.0 3.1.0
flushbar 1.4.0 1.4.0 1.7.0
flutter 0.0.0
flutter_advanced_networkimage ^0.4.14 0.4.15 0.5.0-alpha.3
flutter_svg ^0.12.1 0.12.4+2 0.13.0+2
intl ^0.15.8 0.15.8
kiwi ^0.2.0 0.2.0
rxdart ^0.21.0 0.21.0 0.22.0
Transitive dependencies
args 1.5.2
asn1lib 0.5.8
async 2.2.0
charcode 1.1.2
collection 1.14.11
convert 2.1.1
cookie_jar 1.0.0
http 0.12.0+2
http_parser 3.1.3
meta 1.1.6 1.1.7
path 1.6.2
path_drawing 0.4.1
path_parsing 0.1.4
path_provider 0.5.0+1 1.1.0
pedantic 1.7.0
petitparser 2.2.1 2.3.0
pointycastle 1.0.1
sky_engine 0.0.99
source_span 1.5.5
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
xml 3.4.1 3.5.0
Dev dependencies
flutter_test
mockito 4.0.0