no longer maintained
FieldSetViewto render a field's
displayNameinstead of its
title(tooltip) of the element.
fieldslibrary from the
fields.mirrorslibrary; users of the mirrors library must now explicitly import
fields.mirrorsand call the top-level
sunflowerexample to not use reflection to provide an example of using the core API. The
showcaseexample continues to use reflection as an example of using the
FieldSetregarding the propagation of value change events from grandchildren.
TypedDataare no longer treated as
atomicTypes. Now, by default, the items of a
Listwill be reflected as distinct fields of the parent list. A new
@Itemsannotation has been added as a means to declare annotations to apply to the items of an annotated list. A list may be annotated with
@Items(Ignore)to avoid any reflection of its items.
BitEditorand support configurable bit width via the
@Rangeannotation; the default bit width is 16-bit. For example, to set an 8-bit width you may now apply an annotation of
reflectFieldssuch that it now reflects the fields of
callmethod (Function implementation) to the
Fieldclass to enable a shorthand for getting and setting a field's
implements Functionclause to
Transformto workaround an
undefined is not a functionbug in
annotationson a cached field in a
FieldSetwere not being updated to the annotations of the field's new value.
overflow-y:auto;) to the
overflow:auto;) temporarily from the
ObjectEditoras a workaround for dartbug.com/20456.
ObjectEditorto use themes from the
valuesetter of the
FieldSetclass that supports modification.
Rangeand fixed a bug in the logic.
Rangeannotation is used.
SelectEditorso that a subclass may override this method to build a custom list of options if desired.
getValuesfunction to the
Valuesannotation to provide a mechanism for supplying dynamic values to a
:hoststyling in the
document.registerwith calls to
TypedDataas default atomic types for field reflection.
Iterableas default atomic types for field reflection.
dart:mirrors. This was done to allow data classes to be annotated with field annotations without pulling in a transitive import of
dart:mirrors(and thus leading to code bloat when compiled via
dart2js). Runtime applications and tools can now share such data classes with only the tools depending on
dart:mirrors. Further, it is now possible to design data using synthetic fields that may be tooled without
dart:mirrorsalthough this use case is still being worked on and the API is still very much subject to change.
num <-> doublein the default value transforms.
atomicTypeslist to the
fields.modellibrary. This provides a means to register user-defined types as exceptions to the default field reflection policy of this library.
ObjectEditorto fix styling issues in Chrome 33; The
:hostselector requires the
Enable experimental Web Platform featuresin
chrome://flagswhich no end-user actually sets.
BoolEditorimplementation to a new version that scales properly.
Tin the factory constructors for
Fieldthat was caught by the vm as of Dart SDK 1.2.0.dev_02_04.
ownerparameters in the
@RuntimeTypeannotation that was a workaround for Dart issues 6433 and 12022, which are both resolved as of Dart SDK 1.1.0.dev_05_06.
new ObjectEditorfactory constructor now specifies a default value for the optional parameter
resources, rather than applying the most recently used resources as before.
FieldEditor.refreshElementand this method is now called from the base
scheduleMicrotaskso that concrete editors need not call it from their constructors.
FieldEditor.isValueReadOnlygetter and merged its logic into the
FieldEditor.isEnabledgetter; the default editors now check
fields.viewlibraries into the top-level
lib/directory to make them more accessible for direct package imports.
fieldsThemewith an optional parameter of type
new ObjectEditorfactory constructor. If the resources are not specified the most recently used resources are reused.
UseFieldTransformannotation for this use case. The
SelectEditornow honors the declared
UseFieldTransformfor option values.
rendererfunction in the
SelectEditornow makes a distinction between each value and its rendered presentation, using the
Typeliterals in a switch statement that no longer compiles via
dart2jsas of SDK 1.0.2_r30821.
themefrom its own library to
fields.modellibrary is now decoupled from the theme.
FieldEditor; the styling of field editor elements is best left delegated to component and application views.
transformFieldfunctions with the static methods
BoolEditorelement to a
FieldDescriptionannotation and use it in the
BoolEditorif it is declared on the field being edited.
Field<T>as a means to document the underlying type of a field. The type
Tis asserted to be assignable from the reflected type of the underlying object in checked mode only.
ObjectEditorfrom a subtype of
HasElementto a subtype of
@RuntimeTypeannotation as a workaround for Dart issues 6433 and
valueaccessors from asynchronous methods that return futures to synchronous getters and setters. The implementation now uses synchronous mirrors (
InstanceMirror.getFieldetc...) to close issue #3. This makes the API easier to use for extending
FieldEditorwith your own custom editors. It is also very likely that the asynchronous mirrors API will be removed from
dart:mirrorsin the near future.
FieldTransformclass to a concrete class that can be directly instantiated as
pub serve; this will move up to a top-level directory 'asset/' once
pubis able to serve that to the dependency graph.
Field.forVariablefactory constructors; these are experimental and designed to make it easier to use
FieldEditorinstances outside of an
ObjectEditor. For example, other data entry widgets such as a data grid might want to reuse these field editors. This is subject to change.
selectedobject are reflected based on its
runtimeType, which proxy classes may override.
lib/src/and export the entire public API through the
lib/fields.dartlibrary. This provides a single import statement for applications that use this package.
dev_dependenciesto run the unit tests.
Add this to your package's pubspec.yaml file:
dependencies: fields: ^0.11.5
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.11.5||Nov 24, 2015|
|0.11.0||Jan 1, 2015|
|0.10.2||Dec 30, 2014|
|0.10.1||Dec 23, 2014|
|0.9.12||Nov 2, 2014|
|0.9.8||Sep 21, 2014|
|0.9.1||Aug 21, 2014|
|0.9.0||Aug 20, 2014|
|0.8.15||Aug 14, 2014|
|0.8.14||Aug 11, 2014|
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]
The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.
Support Dart 2 in
The SDK constraint in
pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.
|Dart SDK||>=1.4.0 <2.0.0|