fix(#289): close the unpinned drawer when a channel is picked
Picking a channel from an unpinned drawer switched the channel but left the drawer hanging open over it. The close was attempted from the screen's State context, which sits above the Scaffold that AppShell builds, so Scaffold.maybeOf never resolved it and isDrawerOpen was always false. The close now happens in the drawer tile, whose context is inside the Drawer, and uses closeDrawer() rather than popping a route. Pinned layouts have no drawer to close and are unaffected. Removes the two dead close attempts in ChannelChatScreen and ChannelsScreen. flutter analyze clean, dart format applied. Not yet run on hardware.pull/324/head
parent
82c1e73b51
commit
e194800541
Loading…
Reference in new issue