@@ -640,27 +640,27 @@ class _FixedDestinationContentInput extends StatelessWidget {
640640 final SendableNarrow narrow;
641641 final FixedDestinationComposeBoxController controller;
642642
643- String _hintText (BuildContext context) {
643+ Widget _hint (BuildContext context) {
644644 final zulipLocalizations = ZulipLocalizations .of (context);
645645 switch (narrow) {
646646 case TopicNarrow (: final streamId, : final topic):
647647 final store = PerAccountStoreWidget .of (context);
648648 final streamName = store.streams[streamId]? .name
649649 ?? zulipLocalizations.unknownChannelName;
650- return zulipLocalizations.composeBoxChannelContentHint (
651- streamName, topic.displayName);
650+ return Text ( zulipLocalizations.composeBoxChannelContentHint (
651+ streamName, topic.displayName)) ;
652652
653653 case DmNarrow (otherRecipientIds: []): // The self-1:1 thread.
654- return zulipLocalizations.composeBoxSelfDmContentHint;
654+ return Text ( zulipLocalizations.composeBoxSelfDmContentHint) ;
655655
656656 case DmNarrow (otherRecipientIds: [final otherUserId]):
657657 final store = PerAccountStoreWidget .of (context);
658658 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) );
661661
662662 case DmNarrow (): // A group DM thread.
663- return zulipLocalizations.composeBoxGroupDmContentHint;
663+ return Text ( zulipLocalizations.composeBoxGroupDmContentHint) ;
664664 }
665665 }
666666
@@ -670,7 +670,7 @@ class _FixedDestinationContentInput extends StatelessWidget {
670670 narrow: narrow,
671671 destination: narrow,
672672 controller: controller,
673- hint: Text ( _hintText ( context) ));
673+ hint: _hint ( context));
674674 }
675675}
676676
0 commit comments