@@ -640,27 +640,27 @@ class _FixedDestinationContentInput extends StatelessWidget {
640
640
final SendableNarrow narrow;
641
641
final FixedDestinationComposeBoxController controller;
642
642
643
- String _hintText (BuildContext context) {
643
+ Widget _hint (BuildContext context) {
644
644
final zulipLocalizations = ZulipLocalizations .of (context);
645
645
switch (narrow) {
646
646
case TopicNarrow (: final streamId, : final topic):
647
647
final store = PerAccountStoreWidget .of (context);
648
648
final streamName = store.streams[streamId]? .name
649
649
?? zulipLocalizations.unknownChannelName;
650
- return zulipLocalizations.composeBoxChannelContentHint (
651
- streamName, topic.displayName);
650
+ return Text ( zulipLocalizations.composeBoxChannelContentHint (
651
+ streamName, topic.displayName)) ;
652
652
653
653
case DmNarrow (otherRecipientIds: []): // The self-1:1 thread.
654
- return zulipLocalizations.composeBoxSelfDmContentHint;
654
+ return Text ( zulipLocalizations.composeBoxSelfDmContentHint) ;
655
655
656
656
case DmNarrow (otherRecipientIds: [final otherUserId]):
657
657
final store = PerAccountStoreWidget .of (context);
658
658
final fullName = store.users[otherUserId]? .fullName;
659
- if (fullName == null ) return zulipLocalizations.composeBoxGenericContentHint;
660
- return zulipLocalizations.composeBoxDmContentHint (fullName);
659
+ if (fullName == null ) return Text ( zulipLocalizations.composeBoxGenericContentHint) ;
660
+ return Text ( zulipLocalizations.composeBoxDmContentHint (fullName) );
661
661
662
662
case DmNarrow (): // A group DM thread.
663
- return zulipLocalizations.composeBoxGroupDmContentHint;
663
+ return Text ( zulipLocalizations.composeBoxGroupDmContentHint) ;
664
664
}
665
665
}
666
666
@@ -670,7 +670,7 @@ class _FixedDestinationContentInput extends StatelessWidget {
670
670
narrow: narrow,
671
671
destination: narrow,
672
672
controller: controller,
673
- hint: Text ( _hintText ( context) ));
673
+ hint: _hint ( context));
674
674
}
675
675
}
676
676
0 commit comments