From 523790b0274c6ce95f425d942e55480ffbbd2ddf Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Mon, 4 Jan 2021 16:45:17 +0530 Subject: [PATCH] fix: temp fix for navigation issues --- example/lib/chat_info_screen.dart | 8 -------- example/lib/group_info_screen.dart | 8 -------- example/lib/main.dart | 2 -- 3 files changed, 18 deletions(-) diff --git a/example/lib/chat_info_screen.dart b/example/lib/chat_info_screen.dart index c96d982f..50cb16f8 100644 --- a/example/lib/chat_info_screen.dart +++ b/example/lib/chat_info_screen.dart @@ -223,14 +223,6 @@ class _ChatInfoScreenState extends State { if (channel.state == null) { await channel.watch(); } - await Navigator.pop(context); - await Future.delayed(Duration(milliseconds: 200)); - await Navigator.pop(context); - await Future.delayed(Duration(milliseconds: 200)); - await Navigator.pop(context); - await Future.delayed(Duration(milliseconds: 200)); - await Navigator.pop(context); - await Navigator.pop(context); Navigator.pushNamed( context, Routes.CHANNEL_PAGE, diff --git a/example/lib/group_info_screen.dart b/example/lib/group_info_screen.dart index ace7e2c8..ffab48df 100644 --- a/example/lib/group_info_screen.dart +++ b/example/lib/group_info_screen.dart @@ -496,14 +496,6 @@ class _GroupInfoScreenState extends State { if (channel.state == null) { await channel.watch(); } - await Navigator.pop(context); - await Future.delayed(Duration(milliseconds: 200)); - await Navigator.pop(context); - await Future.delayed(Duration(milliseconds: 200)); - await Navigator.pop(context); - await Future.delayed(Duration(milliseconds: 200)); - await Navigator.pop(context); - await Navigator.pop(context); await Navigator.pushNamed( context, Routes.CHANNEL_PAGE, diff --git a/example/lib/main.dart b/example/lib/main.dart index cc01cec4..b7c30dce 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -527,8 +527,6 @@ class ChannelPage extends StatelessWidget { if (channel.state == null) { await channel.watch(); } - Navigator.pop(context); - Navigator.pop(context); Navigator.pushReplacementNamed( context, Routes.CHANNEL_PAGE,