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

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