View now a stateful widget to prevent memory leeks

This commit is contained in:
Yegor Vialov
2018-10-07 09:45:04 +03:00
parent 284e7ba451
commit b7fb821abe
3 changed files with 51 additions and 17 deletions

View File

@ -171,6 +171,7 @@ class _EntityWidgetState extends State<EntityWidget> {
return _buildBadgeWidget(context);
} else {
TheLogger.log("Error", "Unknown entity widget type: ${widget.widgetType}");
return Container(width: 0.0, height: 0.0);
}
}