Fix camera stream view navigation issue

This commit is contained in:
Yegor Vialov
2020-05-01 18:50:50 +00:00
parent 915e8045a3
commit 1c461d2449
10 changed files with 15 additions and 44 deletions

View File

@ -138,8 +138,7 @@ class _CameraStreamViewState extends State<CameraStreamView> {
iconSize: 40,
color: Theme.of(context).accentColor,
onPressed: _isLoaded ? () {
eventBus.fire(ShowEntityPageEvent());
Navigator.of(context).push(
Navigator.of(context).pushReplacement(
MaterialPageRoute(
builder: (conext) => FullScreenPage(
child: EntityModel(
@ -154,8 +153,8 @@ class _CameraStreamViewState extends State<CameraStreamView> {
),
fullscreenDialog: true
)
).then((_) {
eventBus.fire(ShowEntityPageEvent(entity: _entity));
).then((_){
eventBus.fire(ShowEntityPageEvent(entityId: _entity.entityId));
});
} : null,
)