-
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.
feat(lib/assets/traits/device_item_icon.dart,lib/assets/traits/unknow…
…n_item_icon.dart,lib/components/unknown_widget.dart,test/assets/device_item_icon_test.dart): Add display of Bootstrap Icons box for unknown trait devices
- Loading branch information
Showing
5 changed files
with
37 additions
and
9 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
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,21 @@ | ||
import 'package:bootstrap_icons/bootstrap_icons.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:yonomi_device_widgets/ui/widget_style_constants.dart'; | ||
|
||
class UnknownItemIcon extends StatelessWidget { | ||
late final double _size; | ||
late final Color _color; | ||
|
||
UnknownItemIcon( | ||
[double size = WidgetStyleConstants.defaultDeviceIconSize, | ||
Color color = WidgetStyleConstants.deviceIconColor]) | ||
: super() { | ||
this._size = WidgetStyleConstants.defaultDeviceIconSize; | ||
this._color = WidgetStyleConstants.deviceIconColor; | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Icon(BootstrapIcons.box, 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import 'package:flutter/widgets.dart'; | ||
|
||
class UnknownWidget extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
// TODO: implement build | ||
throw UnimplementedError(); | ||
} | ||
} |
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
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