Yonomi Device Widgets - Flutter

Yonomi Device Widgets: Flutter CircleCI codecov

Device Widgets are rich UI components that represent traits supported by our platform (such as Lights, Locks, Thermostats). They are composable and infinitely customizable. They are open-source, and allow developers to build their own device UIs that are intuitive and inherently tied to the traits and actions featured in our platform's Graph API.

Table of contents

  1. Setup
  2. Running tests

Setup

Cloning the repo

Clone the repo into your local machine:

git clone https://github.com/Yonomi/yonomi-device-widgets.git

Installing the package

In your Flutter app, open your pubspec.yaml file and add the following entry under the dependencies section:

dependencies:
  ...    
  yonomi_device_widgets: ^1.0.0

Running tests

Prerequisites

  • Install lcov:

lcov (For test coverage)

brew install lcov

Run tests with coverage

flutter test --coverage
genhtml coverage/lcov.info -o coverage/html
open coverage/html/index.html

License

This application is released under the Apache license v2.0

License

Libraries

assets/traits/battery_level_icon
assets/traits/color_temperature_icon
assets/traits/device_item_icon
assets/traits/lock_item_icon
assets/traits/pin_code_icon
assets/traits/power_item_icon
assets/traits/thermostat_icon
assets/traits/unknown_item_icon
components/arc
components/device_control
components/lock_widget
components/modes_toolbar
components/thermostat_widget
devices/lock
devices/thermostat
mixins/toast_notifications
providers/battery_level_provider
providers/brightness_provider
providers/color_provider
providers/color_temperature_provider
providers/device_provider
providers/lock_provider
providers/pin_code_provider
providers/power_trait_provider
providers/thermostat_provider
providers/trait_detail_provider
providers/widget_state
traits/battery_widget
traits/brightness_widget
traits/color_temperature_widget
traits/color_widget
traits/detail_screen
traits/device_widget_builder
traits/device_widget_factory
traits/lock_widget
traits/pin_code_widget
traits/power_widget
traits/slim/base_slim_widget
traits/slim/battery_slim_widget
traits/slim/brightness_slim_widget
traits/slim/color_slim_widget
traits/slim/color_temperature_slim_widget
traits/slim/lock_slim_widget
traits/slim/pin_code_slim_widget
traits/slim/power_slim_widget
traits/slim/thermostat_slim_widget
traits/slim/unknown_slim_widget
traits/thermostat_widget
traits/unknown_widget
ui/color_constants
ui/gradient_rect_slider_track_shape
ui/notification_bar
ui/ring_border
ui/string_constants
ui/widget_style_constants