@@ -120,25 +120,28 @@ class _ArticlePageState extends State<ArticlePage> {
120120 icon: const Icon (Icons .share),
121121 onPressed: () => shareArticle (context),
122122 ),
123- PopupMenuButton <String >(
124- icon: const Icon (Icons .more_vert),
125- onSelected: (val) {
126- final store = Provider .of <PostStorage >(context, listen: false );
127- switch (val) {
128- case MoreButtons .Cache :
129- habrStorage.addArticleInCache (widget.articleId);
130- break ;
131- case MoreButtons .Bookmark :
132- addBookMark (store);
133- break ;
134- case MoreButtons .BackToBookmark :
135- returnToBookmark (store);
136- break ;
137- }
138- },
139- itemBuilder: (context) => MoreButtons .values
140- .map ((val) => PopupMenuItem (value: val, child: Text (val)))
141- .toList (),
123+ Builder (
124+ builder: (context) => PopupMenuButton <String >(
125+ icon: const Icon (Icons .more_vert),
126+ onSelected: (val) {
127+ final store =
128+ Provider .of <PostStorage >(context, listen: false );
129+ switch (val) {
130+ case MoreButtons .Cache :
131+ habrStorage.addArticleInCache (widget.articleId);
132+ break ;
133+ case MoreButtons .Bookmark :
134+ addBookMark (store);
135+ break ;
136+ case MoreButtons .BackToBookmark :
137+ returnToBookmark (store);
138+ break ;
139+ }
140+ },
141+ itemBuilder: (context) => MoreButtons .values
142+ .map ((val) => PopupMenuItem (value: val, child: Text (val)))
143+ .toList (),
144+ ),
142145 )
143146 ],
144147 ),
0 commit comments