Skip to content
Snippets Groups Projects
Commit c2625e5a authored by Markin Igor's avatar Markin Igor
Browse files

Fix null initial host.

parent bcc816c9
No related branches found
No related tags found
1 merge request!1Mobile app initial implementation.
......@@ -25,9 +25,11 @@ class _HomeState extends State<Home> {
@override
initState() {
super.initState();
setState(() {
_host = widget.host;
});
if (widget.host != null) {
setState(() {
_host = widget.host;
});
}
showMode(widget.mode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment