Skip to content

Commit 1227390

Browse files
committed
ui: Rename stream to channel in user-facing strings
Fixes part of #630
1 parent 3437549 commit 1227390

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/widgets/app.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class HomePage extends StatelessWidget {
282282
ElevatedButton(
283283
onPressed: () => Navigator.push(context,
284284
SubscriptionListPage.buildRoute(context: context)),
285-
child: const Text("Subscribed streams")),
285+
child: const Text("Subscribed channels")),
286286
const SizedBox(height: 16),
287287
ElevatedButton(
288288
onPressed: () => Navigator.push(context,

lib/widgets/message_list.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ class MessageListAppBarTitle extends StatelessWidget {
148148
case StreamNarrow(:var streamId):
149149
final store = PerAccountStoreWidget.of(context);
150150
final stream = store.streams[streamId];
151-
final streamName = stream?.name ?? '(unknown stream)';
151+
final streamName = stream?.name ?? '(unknown channel)';
152152
return _buildStreamRow(stream, streamName);
153153

154154
case TopicNarrow(:var streamId, :var topic):
155155
final store = PerAccountStoreWidget.of(context);
156156
final stream = store.streams[streamId];
157-
final streamName = stream?.name ?? '(unknown stream)';
157+
final streamName = stream?.name ?? '(unknown channel)';
158158
return _buildStreamRow(stream, "$streamName > $topic");
159159

160160
case DmNarrow(:var otherRecipientIds):

lib/widgets/subscription_list.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class _SubscriptionListPageState extends State<SubscriptionListPage> with PerAcc
8181
unpinned.sortBy((subscription) => subscription.name.toLowerCase());
8282

8383
return Scaffold(
84-
appBar: AppBar(title: const Text("Streams")),
84+
appBar: AppBar(title: const Text("Channels")),
8585
body: SafeArea(
8686
// Don't pad the bottom here; we want the list content to do that.
8787
bottom: false,
@@ -115,7 +115,7 @@ class _NoSubscriptionsItem extends StatelessWidget {
115115
return SliverToBoxAdapter(
116116
child: Padding(
117117
padding: const EdgeInsets.all(10),
118-
child: Text("No streams found",
118+
child: Text("No channels found",
119119
textAlign: TextAlign.center,
120120
style: TextStyle(
121121
// TODO(#95) need dark-theme color

0 commit comments

Comments
 (0)