@@ -313,75 +313,74 @@ class HomePage extends StatelessWidget {
313
313
return Scaffold (
314
314
appBar: ZulipAppBar (title: const Text ("Home" )),
315
315
body: Center (
316
- child: ElevatedButtonTheme (
316
+ child: SingleChildScrollView (
317
+ child: ElevatedButtonTheme (
317
318
data: ElevatedButtonThemeData (style: ButtonStyle (
318
319
backgroundColor: WidgetStatePropertyAll (colorScheme.secondaryContainer),
319
320
foregroundColor: WidgetStatePropertyAll (colorScheme.onSecondaryContainer))),
320
- child: SingleChildScrollView (
321
- child: Center (
322
- child: Column (mainAxisAlignment: MainAxisAlignment .center, children: [
323
- DefaultTextStyle .merge (
324
- textAlign: TextAlign .center,
325
- style: const TextStyle (fontSize: 18 ),
326
- child: Column (children: [
327
- const Text ('🚧 Under construction 🚧' ),
328
- const SizedBox (height: 12 ),
329
- Text .rich (TextSpan (
330
- text: 'Connected to: ' ,
331
- children: [bold (store.realmUrl.toString ())])),
332
- Text .rich (TextSpan (
333
- text: 'Zulip server version: ' ,
334
- children: [bold (store.zulipVersion)])),
335
- Text (zulipLocalizations.subscribedToNChannels (store.subscriptions.length)),
336
- ])),
337
- const SizedBox (height: 16 ),
338
- ElevatedButton (
339
- onPressed: () => Navigator .push (context,
340
- MessageListPage .buildRoute (context: context,
341
- narrow: const CombinedFeedNarrow ())),
342
- child: Text (zulipLocalizations.combinedFeedPageTitle)),
343
- const SizedBox (height: 16 ),
344
- ElevatedButton (
345
- onPressed: () => Navigator .push (context,
346
- MessageListPage .buildRoute (context: context,
347
- narrow: const MentionsNarrow ())),
348
- child: Text (zulipLocalizations.mentionsPageTitle)),
349
- const SizedBox (height: 16 ),
350
- ElevatedButton (
351
- onPressed: () => Navigator .push (context,
352
- MessageListPage .buildRoute (context: context,
353
- narrow: const MentionsNarrow ())),
354
- child: Text (zulipLocalizations.mentionsPageTitle)),
321
+ child: Center (
322
+ child: Column (mainAxisAlignment: MainAxisAlignment .center, children: [
323
+ DefaultTextStyle .merge (
324
+ textAlign: TextAlign .center,
325
+ style: const TextStyle (fontSize: 18 ),
326
+ child: Column (children: [
327
+ const Text ('🚧 Under construction 🚧' ),
328
+ const SizedBox (height: 12 ),
329
+ Text .rich (TextSpan (
330
+ text: 'Connected to: ' ,
331
+ children: [bold (store.realmUrl.toString ())])),
332
+ Text .rich (TextSpan (
333
+ text: 'Zulip server version: ' ,
334
+ children: [bold (store.zulipVersion)])),
335
+ Text (zulipLocalizations.subscribedToNChannels (store.subscriptions.length)),
336
+ ])),
337
+ const SizedBox (height: 16 ),
338
+ ElevatedButton (
339
+ onPressed: () => Navigator .push (context,
340
+ MessageListPage .buildRoute (context: context,
341
+ narrow: const CombinedFeedNarrow ())),
342
+ child: Text (zulipLocalizations.combinedFeedPageTitle)),
343
+ const SizedBox (height: 16 ),
344
+ ElevatedButton (
345
+ onPressed: () => Navigator .push (context,
346
+ MessageListPage .buildRoute (context: context,
347
+ narrow: const MentionsNarrow ())),
348
+ child: Text (zulipLocalizations.mentionsPageTitle)),
349
+ const SizedBox (height: 16 ),
350
+ ElevatedButton (
351
+ onPressed: () => Navigator .push (context,
352
+ MessageListPage .buildRoute (context: context,
353
+ narrow: const MentionsNarrow ())),
354
+ child: Text (zulipLocalizations.mentionsPageTitle)),
355
+ const SizedBox (height: 16 ),
356
+ ElevatedButton (
357
+ onPressed: () => Navigator .push (context,
358
+ MessageListPage .buildRoute (context: context,
359
+ narrow: const StarredMessagesNarrow ())),
360
+ child: Text (zulipLocalizations.starredMessagesPageTitle)),
361
+ const SizedBox (height: 16 ),
362
+ ElevatedButton (
363
+ onPressed: () => Navigator .push (context,
364
+ InboxPage .buildRoute (context: context)),
365
+ child: const Text ("Inbox" )), // TODO(i18n)
366
+ const SizedBox (height: 16 ),
367
+ ElevatedButton (
368
+ onPressed: () => Navigator .push (context,
369
+ SubscriptionListPage .buildRoute (context: context)),
370
+ child: const Text ("Subscribed channels" )),
371
+ const SizedBox (height: 16 ),
372
+ ElevatedButton (
373
+ onPressed: () => Navigator .push (context,
374
+ RecentDmConversationsPage .buildRoute (context: context)),
375
+ child: Text (zulipLocalizations.recentDmConversationsPageTitle)),
376
+ if (testStreamId != null ) ...[
355
377
const SizedBox (height: 16 ),
356
378
ElevatedButton (
357
379
onPressed: () => Navigator .push (context,
358
380
MessageListPage .buildRoute (context: context,
359
- narrow: const StarredMessagesNarrow ())),
360
- child: Text (zulipLocalizations.starredMessagesPageTitle)),
361
- const SizedBox (height: 16 ),
362
- ElevatedButton (
363
- onPressed: () => Navigator .push (context,
364
- InboxPage .buildRoute (context: context)),
365
- child: const Text ("Inbox" )), // TODO(i18n)
366
- const SizedBox (height: 16 ),
367
- ElevatedButton (
368
- onPressed: () => Navigator .push (context,
369
- SubscriptionListPage .buildRoute (context: context)),
370
- child: const Text ("Subscribed channels" )),
371
- const SizedBox (height: 16 ),
372
- ElevatedButton (
373
- onPressed: () => Navigator .push (context,
374
- RecentDmConversationsPage .buildRoute (context: context)),
375
- child: Text (zulipLocalizations.recentDmConversationsPageTitle)),
376
- if (testStreamId != null ) ...[
377
- const SizedBox (height: 16 ),
378
- ElevatedButton (
379
- onPressed: () => Navigator .push (context,
380
- MessageListPage .buildRoute (context: context,
381
- narrow: ChannelNarrow (testStreamId! ))),
382
- child: const Text ("#test here" )), // scaffolding hack, see above
383
- ],
384
- ])),
385
- ))));
381
+ narrow: ChannelNarrow (testStreamId! ))),
382
+ child: const Text ("#test here" )), // scaffolding hack, see above
383
+ ],
384
+ ]))))));
386
385
}
387
386
}
0 commit comments