File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,14 @@ class _HomePageState extends State<HomePage> {
120
120
final designVariables = DesignVariables .of (context);
121
121
return Scaffold (
122
122
appBar: ZulipAppBar (titleSpacing: 16 ,
123
- title: Text (_currentTabTitle)),
123
+ title: Text (_currentTabTitle),
124
+ actions: _tab.value == _HomePageTab .inbox ? [
125
+ IconButton (
126
+ icon: const Icon (ZulipIcons .search),
127
+ onPressed: () => Navigator .of (context).push (MessageListPage .buildRoute (
128
+ context: context, narrow: KeywordSearchNarrow ('' ))),
129
+ ),
130
+ ] : null ),
124
131
body: Stack (
125
132
children: [
126
133
for (final (tab, body) in pageBodies)
Original file line number Diff line number Diff line change @@ -416,6 +416,12 @@ abstract class _MessageListAppBar {
416
416
List <Widget > actions = [];
417
417
switch (narrow) {
418
418
case CombinedFeedNarrow ():
419
+ actions.add (IconButton (
420
+ icon: const Icon (ZulipIcons .search),
421
+ onPressed: () => Navigator .push (context,
422
+ MessageListPage .buildRoute (context: context,
423
+ narrow: KeywordSearchNarrow ('' ))),
424
+ ));
419
425
case MentionsNarrow ():
420
426
case StarredMessagesNarrow ():
421
427
case KeywordSearchNarrow ():
You can’t perform that action at this time.
0 commit comments