🐛 Bug fixes of scaffold
This commit is contained in:
@ -32,7 +32,6 @@ class ChatScreen extends StatelessWidget {
|
||||
title: chat.focusChannel?.name ?? 'Loading...',
|
||||
hideDrawer: true,
|
||||
fixedAppBarColor: SolianTheme.isLargeScreen(context),
|
||||
appBarLeading: IconButton(icon: const Icon(Icons.tag), onPressed: () {}),
|
||||
appBarActions: chat.focusChannel != null
|
||||
? [
|
||||
ChannelCallAction(
|
||||
|
@ -25,10 +25,17 @@ class ChatListScreen extends StatelessWidget {
|
||||
fixedAppBarColor: SolianTheme.isLargeScreen(context),
|
||||
child: ChatListWidget(
|
||||
onSelect: (item) {
|
||||
SolianRouter.router.pushReplacementNamed(
|
||||
'chat.channel',
|
||||
pathParameters: {'channel': item.alias},
|
||||
);
|
||||
if (SolianRouter.currentRoute.name == 'chat.channel') {
|
||||
SolianRouter.router.pushReplacementNamed(
|
||||
'chat.channel',
|
||||
pathParameters: {'channel': item.alias},
|
||||
);
|
||||
} else {
|
||||
SolianRouter.router.pushNamed(
|
||||
'chat.channel',
|
||||
pathParameters: {'channel': item.alias},
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user