This repository has been archived on 2023-11-18. You can view files and clone it, but cannot push or open issues or pull requests.
ha_client/lib/cards/unsupported_card.dart

17 lines
472 B
Dart
Raw Normal View History

2020-04-25 20:38:21 +03:00
part of '../main.dart';
class UnsupportedCard extends StatelessWidget {
2020-04-27 01:46:37 +03:00
final CardData card;
2020-04-25 20:38:21 +03:00
const UnsupportedCard({Key key, this.card}) : super(key: key);
@override
Widget build(BuildContext context) {
return CardWrapper(
2020-04-27 01:46:37 +03:00
child: Padding(
padding: EdgeInsets.fromLTRB(Sizes.leftWidgetPadding, Sizes.rowPadding, Sizes.rightWidgetPadding, Sizes.rowPadding),
child: Text("'${card.type}' card is not supported yet"),
)
2020-04-25 20:38:21 +03:00
);
2020-04-27 01:46:37 +03:00
}
2020-04-25 20:38:21 +03:00
}