Skip to content

Commit 5dfd25e

Browse files
authored
Merge pull request #195 from goldenm-software/development
Add new widgets and update version for 3.8.14 release
2 parents de32615 + ea64519 commit 5dfd25e

5 files changed

Lines changed: 61 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 3.8.14
4+
5+
- Added new widgets on `RenderWidget` enum
6+
37
## 3.8.13
48

59
- Changed `destinyInformation` field in `AtsLoadingParamsFormInput` from nullable `List<AtsDestinyInformationInput>?` to non-nullable `List<AtsDestinyInformationInput>` with `@Default([])` to ensure it always defaults to an empty list.

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ lint:
99
.PHONY: test
1010
test:
1111
flutter test
12+
13+
.PHONY: tag
14+
tag:
15+
@git checkout main
16+
@git pull
17+
@git tag -a v$(VERSION) -m "Release v$(VERSION)"
18+
@git push origin v$(VERSION)
19+
@git checkout development

lib/src/models/models.g.dart

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/models/src/widget.dart

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,91 @@ part of '../models.dart';
22

33
@JsonEnum(alwaysCreate: true)
44
enum RenderWidget {
5-
/// Renders a Thermometer
5+
/// Temperature display (°C)
66
@JsonValue('THERMOMETER')
77
thermometer,
88

9-
/// Renders a Humidity display
9+
/// Humidity display (%)
1010
@JsonValue('HUMIDITY')
1111
humidity,
1212

13-
/// Renders a Pressure display
13+
/// Magnet sensor state display
14+
@JsonValue('MAGNET_SENSOR')
15+
magnetSensor,
16+
17+
/// Magnet sensor count display
18+
@JsonValue('MAGNET_COUNT')
19+
magnetCount,
20+
21+
/// Accelerometer display
22+
@JsonValue('ACCELERATION')
23+
accelerometer,
24+
25+
/// Atmospheric Pressure display (hPa)
1426
@JsonValue('PRESSURE')
1527
pressure,
1628

17-
/// Renders an Illuminance display
29+
/// Illuminance display (lux)
1830
@JsonValue('ILLUMINANCE')
1931
illuminance,
2032

21-
/// Renders an Air Quality / CO2 display
33+
/// Air Quality / CO2 display
2234
@JsonValue('AIR_QUALITY')
2335
airQuality,
2436

25-
/// Renders a Battery level display
37+
/// Battery level display (%)
2638
@JsonValue('BATTERY')
2739
battery,
2840

2941
/// Renders a Link Quality (LQI) display
3042
@JsonValue('LINK_QUALITY')
3143
linkQuality,
3244

33-
/// Renders a read-only binary state indicator
45+
/// On/Off state display
3446
@JsonValue('BINARY_SENSOR')
3547
binarySensor,
3648

37-
/// Renders a Switch
49+
/// Presence indicator
50+
@JsonValue('PRESENCE')
51+
presence,
52+
53+
/// Presence count display
54+
@JsonValue('PRESENCE_COUNT')
55+
presenceCount,
56+
57+
/// Touch button state
58+
@JsonValue('TOUCH')
59+
touch,
60+
61+
/// Touch button count display
62+
@JsonValue('TOUCH_COUNT')
63+
touchCount,
64+
65+
/// On/Off switch control (toggable)
3866
@JsonValue('SWITCH')
3967
switch_,
4068

41-
/// Renders a Dimmer slider
69+
/// Dimmer slider control (0-100%)
4270
@JsonValue('DIMMER')
4371
dimmer,
4472

4573
/// Renders a Color Temperature slider
4674
@JsonValue('COLOR_TEMPERATURE')
4775
colorTemperature,
4876

49-
/// Renders a Thermostat Setpoint slider
77+
/// Setpoint control
5078
@JsonValue('SETPOINT')
5179
setpoint,
5280

53-
/// Renders a Fan Speed slider
81+
/// Fan speed control (rpm)
5482
@JsonValue('FAN_SPEED')
5583
fanSpeed,
5684

57-
/// Renders an RGB/RGBW Color Picker
85+
/// RBG Color Picker control
5886
@JsonValue('COLOR_PICKER')
5987
colorPicker,
6088

61-
/// Renders a Mode Selector (e.g. heat/cool/auto)
89+
/// Renders a Mode Selector (list of modes, only one can be active)
6290
@JsonValue('MODE_SELECTOR')
6391
modeSelector,
6492

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
description: Layrz API models for Dart/Flutter. This package contains the models
22
used by the Layrz API.
33
name: layrz_models
4-
version: "3.8.13"
4+
version: "3.8.14"
55
repository: https://github.com/goldenm-software/layrz_models
66

77
environment:

0 commit comments

Comments
 (0)