fix: temp fix for navigation issues

This commit is contained in:
Deven Joshi
2021-01-04 16:45:17 +05:30
parent 74cff7576b
commit 523790b027
3 changed files with 0 additions and 18 deletions
-8
View File
@@ -223,14 +223,6 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
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,
-8
View File
@@ -496,14 +496,6 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
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,
-2
View File
@@ -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,