@@ -136,9 +136,24 @@ class ArticlePageState extends State<ArticlePage> {
136136 if (isSourceFeed == null ) isSourceFeed = arguments.item2;
137137 final resolvedDarkGrey = MyColors .dynamicDarkGrey.resolveFrom (context);
138138 final viewOptions = {
139- 0 : Padding (child: Icon (Icons .rss_feed, color: resolvedDarkGrey), padding: EdgeInsets .symmetric (horizontal: 8 )),
140- 1 : Icon (Icons .article_outlined, color: resolvedDarkGrey),
141- 2 : Icon (Icons .language, color: resolvedDarkGrey),
139+ 0 : Padding (
140+ child: Icon (
141+ Icons .rss_feed,
142+ color: resolvedDarkGrey,
143+ semanticLabel: S .of (context).rssText,
144+ ),
145+ padding: EdgeInsets .symmetric (horizontal: 8 ),
146+ ),
147+ 1 : Icon (
148+ Icons .article_outlined,
149+ color: resolvedDarkGrey,
150+ semanticLabel: S .of (context).loadFull,
151+ ),
152+ 2 : Icon (
153+ Icons .language,
154+ color: resolvedDarkGrey,
155+ semanticLabel: S .of (context).loadWebpage,
156+ ),
142157 };
143158 return Selector2 <ItemsModel , SourcesModel , Tuple2 <RSSItem , RSSSource >>(
144159 selector: (context, itemsModel, sourcesModel) {
@@ -186,29 +201,42 @@ class ArticlePageState extends State<ArticlePage> {
186201 return CupertinoToolbar (
187202 items: [
188203 CupertinoToolbarItem (
189- icon: item.hasRead ? CupertinoIcons .circle : CupertinoIcons .smallcircle_fill_circle,
204+ icon: item.hasRead
205+ ? CupertinoIcons .circle
206+ : CupertinoIcons .smallcircle_fill_circle,
207+ semanticLabel: item.hasRead
208+ ? S .of (context).markUnread
209+ : S .of (context).markRead,
190210 onPressed: () {
191211 Global .itemsModel.updateItem (item.id, read: ! item.hasRead);
192212 },
193213 ),
194214 CupertinoToolbarItem (
195- icon: item.starred ? CupertinoIcons .star_fill : CupertinoIcons .star,
215+ icon: item.starred
216+ ? CupertinoIcons .star_fill
217+ : CupertinoIcons .star,
218+ semanticLabel: item.starred
219+ ? S .of (context).star
220+ : S .of (context).unstar,
196221 onPressed: () {
197222 Global .itemsModel.updateItem (item.id, starred: ! item.starred);
198223 },
199224 ),
200225 CupertinoToolbarItem (
201226 icon: CupertinoIcons .share,
227+ semanticLabel: S .of (context).share,
202228 onPressed: () { Share .share (item.link); },
203229 ),
204230 CupertinoToolbarItem (
205231 icon: CupertinoIcons .chevron_up,
232+ semanticLabel: S .of (context).prev,
206233 onPressed: idx <= 0 ? null : () {
207234 loadNewItem (feed.iids[idx - 1 ]);
208235 },
209236 ),
210237 CupertinoToolbarItem (
211238 icon: CupertinoIcons .chevron_down,
239+ semanticLabel: S .of (context).next,
212240 onPressed: (idx == - 1 || (idx == feed.iids.length - 1 && feed.allLoaded))
213241 ? null
214242 : () async {
0 commit comments