Resolves #539 Fix button card without entity

This commit is contained in:
Yegor Vialov
2020-04-25 20:53:08 +00:00
parent 05c1427aa8
commit 2c3335ebf3
11 changed files with 115 additions and 104 deletions

View File

@ -14,7 +14,6 @@ class BottomInfoBarController {
List<HAErrorAction> actions = [];
void hideBottomBar() {
//_scaffoldKey?.currentState?.hideCurrentSnackBar();
_bottomBarTimer?.cancel();
if (hide == null) {
initialState = false;
@ -32,7 +31,6 @@ class BottomInfoBarController {
if (show == null) {
initialState = true;
} else {
Logger.d("Calling show() - ${bottomBarProgress}");
show();
}
if (duration != null) {
@ -78,7 +76,6 @@ class _BottomInfoBarState extends State<BottomInfoBar> {
void initState() {
_show = widget.controller.initialState;
widget.controller.show = () {
Logger.d('Set state in show() - ${widget.controller.bottomBarProgress}');
setState(() {
_show = true;
});