-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16f42ae
commit 91a9a0b
Showing
40 changed files
with
2,541 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
doc/api/assets_traits_device_item_icon/DeviceItemIcon/buildUnknownIcon.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
|
||
|
||
# buildUnknownIcon method | ||
|
||
|
||
|
||
|
||
*[<Null safety>](https://dart.dev/null-safety)* | ||
|
||
|
||
|
||
|
||
[Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) buildUnknownIcon | ||
([[double](https://api.flutter.dev/flutter/dart-core/double-class.html) size = 60, [Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html) color = WidgetStyleConstants.deviceIconColor]) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
## Implementation | ||
|
||
```dart | ||
static Widget buildUnknownIcon( | ||
[double size = 60, Color color = WidgetStyleConstants.deviceIconColor]) { | ||
return Icon( | ||
Icons.device_unknown, | ||
size: size, | ||
color: color, | ||
); | ||
} | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
189 changes: 189 additions & 0 deletions
189
doc/api/devices_trait_based_device_screen/LockTraitWidget-class.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
|
||
|
||
|
||
# LockTraitWidget class | ||
|
||
|
||
|
||
|
||
|
||
|
||
*[<Null safety>](https://dart.dev/null-safety)* | ||
|
||
|
||
|
||
|
||
|
||
**Inheritance** | ||
|
||
- [Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) | ||
- [DiagnosticableTree](https://api.flutter.dev/flutter/foundation/DiagnosticableTree-class.html) | ||
- [Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) | ||
- [StatelessWidget](https://api.flutter.dev/flutter/widgets/StatelessWidget-class.html) | ||
- LockTraitWidget | ||
|
||
|
||
|
||
|
||
|
||
|
||
## Constructors | ||
|
||
[LockTraitWidget](../devices_trait_based_device_screen/LockTraitWidget/LockTraitWidget.md) ([Trait](https://yonomi.co/yonomi-sdk/Trait-class.html) trait) | ||
|
||
|
||
|
||
|
||
## Properties | ||
|
||
##### [hashCode](https://api.flutter.dev/flutter/widgets/Widget/hashCode.html) → [int](https://api.flutter.dev/flutter/dart-core/int-class.html) | ||
|
||
|
||
|
||
The hash code for this object. [...](https://api.flutter.dev/flutter/widgets/Widget/hashCode.html) | ||
_@[nonVirtual](https://pub.dev/documentation/meta/1.7.0/meta/nonVirtual-constant.html), read-only, inherited_ | ||
|
||
|
||
|
||
##### [key](https://api.flutter.dev/flutter/widgets/Widget/key.html) → [Key](https://api.flutter.dev/flutter/foundation/Key-class.html)? | ||
|
||
|
||
|
||
Controls how one widget replaces another widget in the tree. [...](https://api.flutter.dev/flutter/widgets/Widget/key.html) | ||
_final, inherited_ | ||
|
||
|
||
|
||
##### [runtimeType](https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html) → [Type](https://api.flutter.dev/flutter/dart-core/Type-class.html) | ||
|
||
|
||
|
||
A representation of the runtime type of the object. | ||
_read-only, inherited_ | ||
|
||
|
||
|
||
##### [trait](../devices_trait_based_device_screen/LockTraitWidget/trait.md) ↔ [Trait](https://yonomi.co/yonomi-sdk/Trait-class.html) | ||
|
||
|
||
|
||
|
||
_read / write_ | ||
|
||
|
||
|
||
|
||
## Methods | ||
|
||
##### [build](../devices_trait_based_device_screen/LockTraitWidget/build.md)([BuildContext](https://api.flutter.dev/flutter/widgets/BuildContext-class.html) context) [Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) | ||
|
||
|
||
|
||
Describes the part of the user interface represented by this widget. [...](../devices_trait_based_device_screen/LockTraitWidget/build.md) | ||
_override_ | ||
|
||
|
||
|
||
##### [createElement](https://api.flutter.dev/flutter/widgets/StatelessWidget/createElement.html)() [StatelessElement](https://api.flutter.dev/flutter/widgets/StatelessElement-class.html) | ||
|
||
|
||
|
||
Creates a <a href="https://api.flutter.dev/flutter/widgets/StatelessElement-class.html">StatelessElement</a> to manage this widget's location in the tree. [...](https://api.flutter.dev/flutter/widgets/StatelessWidget/createElement.html) | ||
_inherited_ | ||
|
||
|
||
|
||
##### [debugDescribeChildren](https://api.flutter.dev/flutter/foundation/DiagnosticableTree/debugDescribeChildren.html)() [List](https://api.flutter.dev/flutter/dart-core/List-class.html)<[DiagnosticsNode](https://api.flutter.dev/flutter/foundation/DiagnosticsNode-class.html)> | ||
|
||
|
||
|
||
Returns a list of <code>DiagnosticsNode</code> objects describing this node's | ||
children. [...](https://api.flutter.dev/flutter/foundation/DiagnosticableTree/debugDescribeChildren.html) | ||
_@[protected](https://pub.dev/documentation/meta/1.7.0/meta/protected-constant.html), inherited_ | ||
|
||
|
||
|
||
##### [debugFillProperties](https://api.flutter.dev/flutter/widgets/Widget/debugFillProperties.html)([DiagnosticPropertiesBuilder](https://api.flutter.dev/flutter/foundation/DiagnosticPropertiesBuilder-class.html) properties) void | ||
|
||
|
||
|
||
Add additional properties associated with the node. [...](https://api.flutter.dev/flutter/widgets/Widget/debugFillProperties.html) | ||
_inherited_ | ||
|
||
|
||
|
||
##### [noSuchMethod](https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html)([Invocation](https://api.flutter.dev/flutter/dart-core/Invocation-class.html) invocation) dynamic | ||
|
||
|
||
|
||
Invoked when a non-existent method or property is accessed. [...](https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html) | ||
_inherited_ | ||
|
||
|
||
|
||
##### [toDiagnosticsNode](https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toDiagnosticsNode.html)({[String](https://api.flutter.dev/flutter/dart-core/String-class.html)? name, [DiagnosticsTreeStyle](https://api.flutter.dev/flutter/foundation/DiagnosticsTreeStyle.html)? style}) [DiagnosticsNode](https://api.flutter.dev/flutter/foundation/DiagnosticsNode-class.html) | ||
|
||
|
||
|
||
Returns a debug representation of the object that is used by debugging | ||
tools and by <a href="https://api.flutter.dev/flutter/foundation/DiagnosticsNode/toStringDeep.html">DiagnosticsNode.toStringDeep</a>. [...](https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toDiagnosticsNode.html) | ||
_inherited_ | ||
|
||
|
||
|
||
##### [toString](https://api.flutter.dev/flutter/foundation/Diagnosticable/toString.html)({[DiagnosticLevel](https://api.flutter.dev/flutter/foundation/DiagnosticLevel.html) minLevel = DiagnosticLevel.info}) [String](https://api.flutter.dev/flutter/dart-core/String-class.html) | ||
|
||
|
||
|
||
A string representation of this object. [...](https://api.flutter.dev/flutter/foundation/Diagnosticable/toString.html) | ||
_inherited_ | ||
|
||
|
||
|
||
##### [toStringDeep](https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringDeep.html)({[String](https://api.flutter.dev/flutter/dart-core/String-class.html) prefixLineOne = '', [String](https://api.flutter.dev/flutter/dart-core/String-class.html)? prefixOtherLines, [DiagnosticLevel](https://api.flutter.dev/flutter/foundation/DiagnosticLevel.html) minLevel = DiagnosticLevel.debug}) [String](https://api.flutter.dev/flutter/dart-core/String-class.html) | ||
|
||
|
||
|
||
Returns a string representation of this node and its descendants. [...](https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringDeep.html) | ||
_inherited_ | ||
|
||
|
||
|
||
##### [toStringShallow](https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringShallow.html)({[String](https://api.flutter.dev/flutter/dart-core/String-class.html) joiner = ', ', [DiagnosticLevel](https://api.flutter.dev/flutter/foundation/DiagnosticLevel.html) minLevel = DiagnosticLevel.debug}) [String](https://api.flutter.dev/flutter/dart-core/String-class.html) | ||
|
||
|
||
|
||
Returns a one-line detailed description of the object. [...](https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringShallow.html) | ||
_inherited_ | ||
|
||
|
||
|
||
##### [toStringShort](https://api.flutter.dev/flutter/widgets/Widget/toStringShort.html)() [String](https://api.flutter.dev/flutter/dart-core/String-class.html) | ||
|
||
|
||
|
||
A short, textual description of this widget. | ||
_inherited_ | ||
|
||
|
||
|
||
|
||
## Operators | ||
|
||
##### [operator ==](https://api.flutter.dev/flutter/widgets/Widget/operator_equals.html)([Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) other) [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) | ||
|
||
|
||
|
||
The equality operator. [...](https://api.flutter.dev/flutter/widgets/Widget/operator_equals.html) | ||
_@[nonVirtual](https://pub.dev/documentation/meta/1.7.0/meta/nonVirtual-constant.html), inherited_ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
30 changes: 30 additions & 0 deletions
30
doc/api/devices_trait_based_device_screen/LockTraitWidget/LockTraitWidget.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
|
||
|
||
# LockTraitWidget constructor | ||
|
||
|
||
|
||
|
||
*[<Null safety>](https://dart.dev/null-safety)* | ||
|
||
|
||
|
||
LockTraitWidget([Trait](https://yonomi.co/yonomi-sdk/Trait-class.html) trait) | ||
|
||
|
||
|
||
|
||
|
||
## Implementation | ||
|
||
```dart | ||
LockTraitWidget(this.trait); | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
72 changes: 72 additions & 0 deletions
72
doc/api/devices_trait_based_device_screen/LockTraitWidget/build.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
|
||
|
||
|
||
# build method | ||
|
||
|
||
|
||
|
||
*[<Null safety>](https://dart.dev/null-safety)* | ||
|
||
|
||
|
||
- @[override](https://api.flutter.dev/flutter/dart-core/override-constant.html) | ||
|
||
[Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) build | ||
([BuildContext](https://api.flutter.dev/flutter/widgets/BuildContext-class.html) context) | ||
|
||
_override_ | ||
|
||
|
||
|
||
<p>Describes the part of the user interface represented by this widget.</p> | ||
<p>The framework calls this method when this widget is inserted into the tree | ||
in a given <a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a> and when the dependencies of this widget change | ||
(e.g., an <a href="https://api.flutter.dev/flutter/widgets/InheritedWidget-class.html">InheritedWidget</a> referenced by this widget changes). This | ||
method can potentially be called in every frame and should not have any side | ||
effects beyond building a widget.</p> | ||
<p>The framework replaces the subtree below this widget with the widget | ||
returned by this method, either by updating the existing subtree or by | ||
removing the subtree and inflating a new subtree, depending on whether the | ||
widget returned by this method can update the root of the existing | ||
subtree, as determined by calling <a href="https://api.flutter.dev/flutter/widgets/Widget/canUpdate.html">Widget.canUpdate</a>.</p> | ||
<p>Typically implementations return a newly created constellation of widgets | ||
that are configured with information from this widget's constructor and | ||
from the given <a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a>.</p> | ||
<p>The given <a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a> contains information about the location in the | ||
tree at which this widget is being built. For example, the context | ||
provides the set of inherited widgets for this location in the tree. A | ||
given widget might be built with multiple different <a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a> | ||
arguments over time if the widget is moved around the tree or if the | ||
widget is inserted into the tree in multiple places at once.</p> | ||
<p>The implementation of this method must only depend on:</p> | ||
<ul> | ||
<li>the fields of the widget, which themselves must not change over time, | ||
and</li> | ||
<li>any ambient state obtained from the <code>context</code> using | ||
<a href="https://api.flutter.dev/flutter/widgets/BuildContext/dependOnInheritedWidgetOfExactType.html">BuildContext.dependOnInheritedWidgetOfExactType</a>.</li> | ||
</ul> | ||
<p>If a widget's <a href="../../devices_trait_based_device_screen/LockTraitWidget/build.md">build</a> method is to depend on anything else, use a | ||
<a href="https://api.flutter.dev/flutter/widgets/StatefulWidget-class.html">StatefulWidget</a> instead.</p> | ||
<p>See also:</p> | ||
<ul> | ||
<li><a href="https://api.flutter.dev/flutter/widgets/StatelessWidget-class.html">StatelessWidget</a>, which contains the discussion on performance considerations.</li> | ||
</ul> | ||
|
||
|
||
|
||
## Implementation | ||
|
||
```dart | ||
@override | ||
Widget build(BuildContext context) { | ||
return Text("Lock-based: ${this.trait.name}"); | ||
} | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.