File tree Expand file tree Collapse file tree 6 files changed +19
-11
lines changed
Expand file tree Collapse file tree 6 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -18,5 +18,5 @@ void main() {
1818 LiveZulipBinding .ensureInitialized ();
1919 NotificationService .instance.start ();
2020 ShareService .start ();
21- runApp (ZulipApp ());
21+ runApp (const ZulipApp ());
2222}
Original file line number Diff line number Diff line change @@ -256,11 +256,9 @@ class BottomSheetEmptyContentPlaceholder extends StatelessWidget {
256256
257257 final child = loading
258258 ? Semantics (
259-
259+ textDirection : Directionality . of (context),
260260 focusable: true ,
261-
262261 liveRegion: true ,
263-
264262 label: 'Loading…' ,
265263 child: CircularProgressIndicator (),
266264 )
@@ -636,6 +634,8 @@ class ChannelFeedButton extends ActionSheetMenuItemButton {
636634 }
637635}
638636
637+
638+
639639class CopyChannelLinkButton extends ActionSheetMenuItemButton {
640640 const CopyChannelLinkButton ({
641641 super .key,
Original file line number Diff line number Diff line change @@ -248,10 +248,10 @@ class _LoadingPlaceholderPageState extends State<_LoadingPlaceholderPage> {
248248 children: [
249249 Semantics (
250250 label: 'Loading…' ,
251+ textDirection: Directionality .of (context),
251252 liveRegion: true ,
252253 child: const CircularProgressIndicator (),
253- )
254- ,
254+ ),
255255 Visibility (
256256 visible: showTryAnotherAccount,
257257 maintainSize: true ,
Original file line number Diff line number Diff line change @@ -1298,8 +1298,8 @@ class _MessageListLoadingMore extends StatelessWidget {
12981298 child: Padding (
12991299 padding: const EdgeInsets .symmetric (vertical: 16.0 ),
13001300 child: Semantics (
1301+ textDirection: Directionality .of (context),
13011302 label: 'Loading more messages' ,
1302-
13031303 liveRegion: true ,
13041304 child: const CircularProgressIndicator (),
13051305 ),
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ class _TopicListState extends State<_TopicList> with PerAccountStoreAwareStateMi
170170 child: Padding (
171171 padding: const EdgeInsets .symmetric (vertical: 16.0 ),
172172 child: Semantics (
173+ textDirection: Directionality .of (context),
173174 label: 'Loading…' , // plain string (not localized)
174175 liveRegion: true ,
175176 child: CircularProgressIndicator (),
@@ -179,6 +180,7 @@ class _TopicListState extends State<_TopicList> with PerAccountStoreAwareStateMi
179180
180181 }
181182
183+
182184 // TODO(design) handle the rare case when `lastFetchedTopics` is empty
183185
184186 // This is adapted from parts of the build method on [_InboxPageState].
Original file line number Diff line number Diff line change @@ -21,9 +21,13 @@ void main() {
2121
2222 final httpClient = prepareBoringImageHttpClient ();
2323
24- await tester.pumpWidget (GlobalStoreWidget (
25- child: PerAccountStoreWidget (accountId: eg.selfAccount.id,
26- child: RealmContentNetworkImage (src))));
24+ await tester.pumpWidget ( Directionality (
25+ textDirection: TextDirection .ltr,
26+ child: GlobalStoreWidget (
27+ child: PerAccountStoreWidget (
28+ accountId: eg.selfAccount.id,
29+ child: RealmContentNetworkImage (src),
30+ ),)));
2731 await tester.pump ();
2832 await tester.pump ();
2933
@@ -47,7 +51,9 @@ void main() {
4751
4852 testWidgets ('throws if no `PerAccountStoreWidget` ancestor' , (tester) async {
4953 await tester.pumpWidget (
50- RealmContentNetworkImage (Uri .parse ('https://zulip.invalid/path/to/image.png' ), filterQuality: FilterQuality .medium));
54+ Directionality ( textDirection: TextDirection .ltr,
55+
56+ child: RealmContentNetworkImage (Uri .parse ('https://zulip.invalid/path/to/image.png' ), filterQuality: FilterQuality .medium)));
5157 check (tester.takeException ()).isA <AssertionError >();
5258 });
5359 });
You can’t perform that action at this time.
0 commit comments