Skip to content

Commit

Permalink
Merge pull request #20 from Yonomi/fix_dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: make codebase null-safe compatible
  • Loading branch information
ses110 committed Nov 19, 2021
2 parents 1cd7e7d + 68334a5 commit 9261801
Show file tree
Hide file tree
Showing 139 changed files with 1,155 additions and 543 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ anchors:
executors:
default-executor:
docker:
- image: cirrusci/flutter:2.0.6
- image: cirrusci/flutter
shell: "/bin/bash -eo pipefail"

commands:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@



*[<Null safety>](https://dart.dev/null-safety)*



Expand Down Expand Up @@ -87,7 +88,7 @@ _inherited_



##### [buildThermostatIcon](../assets_traits_device_item_icon/DeviceItemIcon/buildThermostatIcon.md)([double](https://api.flutter.dev/flutter/dart-core/double-class.html) thermostatState) [Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html)
##### [buildThermostatIcon](../assets_traits_device_item_icon/DeviceItemIcon/buildThermostatIcon.md)([double](https://api.flutter.dev/flutter/dart-core/double-class.html)? thermostatState) [Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html)



Expand All @@ -105,7 +106,7 @@ _inherited_



##### [getIcon](../assets_traits_device_item_icon/DeviceItemIcon/getIcon.md)([List](https://api.flutter.dev/flutter/dart-core/List-class.html)&lt;[Trait](https://pub.dev/documentation/yonomi_platform_sdk/1.0.5/repository_devices_devices_repository/Trait-class.html)> traits) [Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html)
##### [getIcon](../assets_traits_device_item_icon/DeviceItemIcon/getIcon.md)([List](https://api.flutter.dev/flutter/dart-core/List-class.html)&lt;[Trait](https://yonomi.co/yonomi-sdk/Trait-class.html)> traits) [Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html)



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@



*[<Null safety>](https://dart.dev/null-safety)*



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@



*[<Null safety>](https://dart.dev/null-safety)*



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@



*[<Null safety>](https://dart.dev/null-safety)*




[Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) buildThermostatIcon
([double](https://api.flutter.dev/flutter/dart-core/double-class.html) thermostatState)
([double](https://api.flutter.dev/flutter/dart-core/double-class.html)? thermostatState)



Expand All @@ -23,7 +24,7 @@
## Implementation

```dart
static Widget buildThermostatIcon(double thermostatState) {
static Widget buildThermostatIcon(double? thermostatState) {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(100),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@



*[<Null safety>](https://dart.dev/null-safety)*



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@



*[<Null safety>](https://dart.dev/null-safety)*




[Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) getIcon
([List](https://api.flutter.dev/flutter/dart-core/List-class.html)&lt;[Trait](https://pub.dev/documentation/yonomi_platform_sdk/1.0.5/repository_devices_devices_repository/Trait-class.html)> traits)
([List](https://api.flutter.dev/flutter/dart-core/List-class.html)&lt;[Trait](https://yonomi.co/yonomi-sdk/Trait-class.html)> traits)



Expand All @@ -25,7 +26,7 @@
```dart
static Widget getIcon(List<Trait> traits) {
Trait determiningTrait = traits[0];
if (determiningTrait is LockUnlockTrait) {
if (determiningTrait is LockTrait) {
return (determiningTrait.state.value)
? buildLockIcon()
: buildUnlockIcon();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@



*[<Null safety>](https://dart.dev/null-safety)*



Expand Down
21 changes: 11 additions & 10 deletions doc/api/components_arc/Arc-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@



*[<Null safety>](https://dart.dev/null-safety)*



Expand All @@ -28,7 +29,7 @@

## Constructors

[Arc](../components_arc/Arc/Arc.md) ({[Key](https://api.flutter.dev/flutter/foundation/Key-class.html) key, [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) showThumb = true, @[required](https://pub.dev/documentation/meta/1.3.0/meta/required-constant.html) [Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) centerWidget, @[required](https://pub.dev/documentation/meta/1.3.0/meta/required-constant.html) [double](https://api.flutter.dev/flutter/dart-core/double-class.html) initialValue, @[required](https://pub.dev/documentation/meta/1.3.0/meta/required-constant.html) [double](https://api.flutter.dev/flutter/dart-core/double-class.html) maxValue, @[required](https://pub.dev/documentation/meta/1.3.0/meta/required-constant.html) [ValueChanged](https://api.flutter.dev/flutter/foundation/ValueChanged.html)&lt;[double](https://api.flutter.dev/flutter/dart-core/double-class.html)> onFinalSetPoint, [Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html) color})
[Arc](../components_arc/Arc/Arc.md) ({[Key](https://api.flutter.dev/flutter/foundation/Key-class.html)? key, [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) showThumb = true, required [Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) centerWidget, required [double](https://api.flutter.dev/flutter/dart-core/double-class.html) initialValue, required [double](https://api.flutter.dev/flutter/dart-core/double-class.html) maxValue, required [ValueChanged](https://api.flutter.dev/flutter/foundation/ValueChanged.html)&lt;[double](https://api.flutter.dev/flutter/dart-core/double-class.html)> onFinalSetPoint, [Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html)? color})



Expand All @@ -44,7 +45,7 @@ _final_



##### [color](../components_arc/Arc/color.md) &#8594; [Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html)
##### [color](../components_arc/Arc/color.md) &#8594; [Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html)?



Expand All @@ -58,7 +59,7 @@ _final_


The hash code for this object. [...](https://api.flutter.dev/flutter/widgets/Widget/hashCode.html)
_@[nonVirtual](https://pub.dev/documentation/meta/1.3.0/meta/nonVirtual-constant.html), read-only, inherited_
_@[nonVirtual](https://pub.dev/documentation/meta/1.7.0/meta/nonVirtual-constant.html), read-only, inherited_



Expand All @@ -71,7 +72,7 @@ _final_



##### [key](https://api.flutter.dev/flutter/widgets/Widget/key.html) &#8594; [Key](https://api.flutter.dev/flutter/foundation/Key-class.html)
##### [key](https://api.flutter.dev/flutter/widgets/Widget/key.html) &#8594; [Key](https://api.flutter.dev/flutter/foundation/Key-class.html)?



Expand Down Expand Up @@ -143,7 +144,7 @@ _override_

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.3.0/meta/protected-constant.html), inherited_
_@[protected](https://pub.dev/documentation/meta/1.7.0/meta/protected-constant.html), inherited_



Expand All @@ -165,7 +166,7 @@ _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-class.html) style}) [DiagnosticsNode](https://api.flutter.dev/flutter/foundation/DiagnosticsNode-class.html)
##### [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)



Expand All @@ -175,7 +176,7 @@ _inherited_



##### [toString](https://api.flutter.dev/flutter/foundation/Diagnosticable/toString.html)({[DiagnosticLevel](https://api.flutter.dev/flutter/foundation/DiagnosticLevel-class.html) minLevel = DiagnosticLevel.info}) [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
##### [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)



Expand All @@ -184,7 +185,7 @@ _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-class.html) minLevel = DiagnosticLevel.debug}) [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
##### [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)



Expand All @@ -193,7 +194,7 @@ _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-class.html) minLevel = DiagnosticLevel.debug}) [String](https://api.flutter.dev/flutter/dart-core/String-class.html)
##### [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)



Expand All @@ -219,7 +220,7 @@ _inherited_


The equality operator. [...](https://api.flutter.dev/flutter/widgets/Widget/operator_equals.html)
_@[nonVirtual](https://pub.dev/documentation/meta/1.3.0/meta/nonVirtual-constant.html), inherited_
_@[nonVirtual](https://pub.dev/documentation/meta/1.7.0/meta/nonVirtual-constant.html), inherited_



Expand Down
13 changes: 7 additions & 6 deletions doc/api/components_arc/Arc/Arc.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@



*[<Null safety>](https://dart.dev/null-safety)*



Arc({[Key](https://api.flutter.dev/flutter/foundation/Key-class.html) key, [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) showThumb = true, @[required](https://pub.dev/documentation/meta/1.3.0/meta/required-constant.html) [Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) centerWidget, @[required](https://pub.dev/documentation/meta/1.3.0/meta/required-constant.html) [double](https://api.flutter.dev/flutter/dart-core/double-class.html) initialValue, @[required](https://pub.dev/documentation/meta/1.3.0/meta/required-constant.html) [double](https://api.flutter.dev/flutter/dart-core/double-class.html) maxValue, @[required](https://pub.dev/documentation/meta/1.3.0/meta/required-constant.html) [ValueChanged](https://api.flutter.dev/flutter/foundation/ValueChanged.html)&lt;[double](https://api.flutter.dev/flutter/dart-core/double-class.html)> onFinalSetPoint, [Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html) color})
Arc({[Key](https://api.flutter.dev/flutter/foundation/Key-class.html)? key, [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) showThumb = true, required [Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) centerWidget, required [double](https://api.flutter.dev/flutter/dart-core/double-class.html) initialValue, required [double](https://api.flutter.dev/flutter/dart-core/double-class.html) maxValue, required [ValueChanged](https://api.flutter.dev/flutter/foundation/ValueChanged.html)&lt;[double](https://api.flutter.dev/flutter/dart-core/double-class.html)> onFinalSetPoint, [Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html)? color})



Expand All @@ -19,12 +20,12 @@ Arc({[Key](https://api.flutter.dev/flutter/foundation/Key-class.html) key, [bool

```dart
Arc({
Key key,
Key? key,
this.showThumb = true,
@required this.centerWidget,
@required this.initialValue,
@required this.maxValue,
@required this.onFinalSetPoint,
required this.centerWidget,
required this.initialValue,
required this.maxValue,
required this.onFinalSetPoint,
this.color,
}) : super(key: key);
```
Expand Down
1 change: 1 addition & 0 deletions doc/api/components_arc/Arc/centerWidget.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@



*[<Null safety>](https://dart.dev/null-safety)*


[Widget](https://api.flutter.dev/flutter/widgets/Widget-class.html) centerWidget
Expand Down
5 changes: 3 additions & 2 deletions doc/api/components_arc/Arc/color.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@



*[<Null safety>](https://dart.dev/null-safety)*


[Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html) color
[Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html)? color

_final_

Expand All @@ -20,7 +21,7 @@ _final_
## Implementation

```dart
final Color color;
final Color? color;
```
Expand Down
3 changes: 2 additions & 1 deletion doc/api/components_arc/Arc/createState.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@



*[<Null safety>](https://dart.dev/null-safety)*



Expand All @@ -22,7 +23,7 @@ _override_
<p>Subclasses should override this method to return a newly created
instance of their associated <a href="https://api.flutter.dev/flutter/widgets/State-class.html">State</a> subclass:</p>
<pre class="language-dart"><code class="language-dart">@override
_MyState createState() =&gt; _MyState();
State&lt;MyWidget&gt; createState() =&gt; _MyWidgetState();
</code></pre>
<p>The framework can call this method multiple times over the lifetime of
a <code>StatefulWidget</code>. For example, if the widget is inserted into the tree
Expand Down
1 change: 1 addition & 0 deletions doc/api/components_arc/Arc/initialValue.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@



*[<Null safety>](https://dart.dev/null-safety)*


[double](https://api.flutter.dev/flutter/dart-core/double-class.html) initialValue
Expand Down
1 change: 1 addition & 0 deletions doc/api/components_arc/Arc/maxValue.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@



*[<Null safety>](https://dart.dev/null-safety)*


[double](https://api.flutter.dev/flutter/dart-core/double-class.html) maxValue
Expand Down
1 change: 1 addition & 0 deletions doc/api/components_arc/Arc/onFinalSetPoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@



*[<Null safety>](https://dart.dev/null-safety)*


[ValueChanged](https://api.flutter.dev/flutter/foundation/ValueChanged.html)&lt;[double](https://api.flutter.dev/flutter/dart-core/double-class.html)> onFinalSetPoint
Expand Down
1 change: 1 addition & 0 deletions doc/api/components_arc/Arc/showThumb.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@



*[<Null safety>](https://dart.dev/null-safety)*


[bool](https://api.flutter.dev/flutter/dart-core/bool-class.html) showThumb
Expand Down
9 changes: 5 additions & 4 deletions doc/api/components_arc/ArcPainter-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@



*[<Null safety>](https://dart.dev/null-safety)*



Expand All @@ -27,14 +28,14 @@

## Constructors

[ArcPainter](../components_arc/ArcPainter/ArcPainter.md) ([Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html) color, [double](https://api.flutter.dev/flutter/dart-core/double-class.html) width, [double](https://api.flutter.dev/flutter/dart-core/double-class.html) height)
[ArcPainter](../components_arc/ArcPainter/ArcPainter.md) ([Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html)? color, [double](https://api.flutter.dev/flutter/dart-core/double-class.html) width, [double](https://api.flutter.dev/flutter/dart-core/double-class.html) height)




## Properties

##### [color](../components_arc/ArcPainter/color.md) &#8594; [Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html)
##### [color](../components_arc/ArcPainter/color.md) &#8594; [Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html)?



Expand Down Expand Up @@ -70,7 +71,7 @@ _read-only, inherited_



##### [semanticsBuilder](https://api.flutter.dev/flutter/rendering/CustomPainter/semanticsBuilder.html) &#8594; [SemanticsBuilderCallback](https://api.flutter.dev/flutter/rendering/SemanticsBuilderCallback.html)
##### [semanticsBuilder](https://api.flutter.dev/flutter/rendering/CustomPainter/semanticsBuilder.html) &#8594; [SemanticsBuilderCallback](https://api.flutter.dev/flutter/rendering/SemanticsBuilderCallback.html)?



Expand Down Expand Up @@ -101,7 +102,7 @@ _inherited_



##### [hitTest](https://api.flutter.dev/flutter/rendering/CustomPainter/hitTest.html)([Offset](https://api.flutter.dev/flutter/dart-ui/Offset-class.html) position) [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)
##### [hitTest](https://api.flutter.dev/flutter/rendering/CustomPainter/hitTest.html)([Offset](https://api.flutter.dev/flutter/dart-ui/Offset-class.html) position) [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)?



Expand Down
3 changes: 2 additions & 1 deletion doc/api/components_arc/ArcPainter/ArcPainter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@



*[<Null safety>](https://dart.dev/null-safety)*



ArcPainter([Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html) color, [double](https://api.flutter.dev/flutter/dart-core/double-class.html) width, [double](https://api.flutter.dev/flutter/dart-core/double-class.html) height)
ArcPainter([Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html)? color, [double](https://api.flutter.dev/flutter/dart-core/double-class.html) width, [double](https://api.flutter.dev/flutter/dart-core/double-class.html) height)



Expand Down
5 changes: 3 additions & 2 deletions doc/api/components_arc/ArcPainter/color.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@



*[<Null safety>](https://dart.dev/null-safety)*


[Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html) color
[Color](https://api.flutter.dev/flutter/dart-ui/Color-class.html)? color

_final_

Expand All @@ -20,7 +21,7 @@ _final_
## Implementation

```dart
final Color color;
final Color? color;
```
Expand Down
Loading

0 comments on commit 9261801

Please sign in to comment.