@@ -159,26 +159,26 @@ class ScrollablePostsList extends ConsumerWidget {
159159
160160 @override
161161 Widget build (BuildContext context, ref) {
162- final profileFeedStateP = ref.watch (genericFeedStateProvider (feedFilter));
163- final profileFeedStateNoti =
162+ final genericFeedStateP = ref.watch (genericFeedStateProvider (feedFilter));
163+ final genericFeedStateNoti =
164164 ref.read (genericFeedStateProvider (feedFilter).notifier);
165165
166166 return _BuildScrollablePostsList (
167- itemCount: profileFeedStateP .timelineRootNotes.length + 1 ,
167+ itemCount: genericFeedStateP .timelineRootNotes.length + 1 ,
168168 itemBuilder: (context, index) {
169- if (index == profileFeedStateP .timelineRootNotes.length) {
170- if (profileFeedStateP .endOfRootNotes) {
169+ if (index == genericFeedStateP .timelineRootNotes.length) {
170+ if (genericFeedStateP .endOfRootNotes) {
171171 return NoMoreNotes ();
172172 }
173173 return SkeletonNote (
174174 renderCallback: () {
175- profileFeedStateNoti .loadMore ();
175+ genericFeedStateNoti .loadMore ();
176176 },
177177 );
178178 }
179179 return NoteCardContainer (
180- key: PageStorageKey (profileFeedStateP .timelineRootNotes[index].id),
181- note: profileFeedStateP .timelineRootNotes[index],
180+ key: PageStorageKey (genericFeedStateP .timelineRootNotes[index].id),
181+ note: genericFeedStateP .timelineRootNotes[index],
182182 );
183183 },
184184 );
@@ -194,28 +194,28 @@ class ScrollablePostsAndRepliesList extends ConsumerWidget {
194194
195195 @override
196196 Widget build (BuildContext context, ref) {
197- final profileFeedStateP = ref.watch (genericFeedStateProvider (feedFilter));
198- final profileFeedStateNoti =
197+ final genericFeedStateP = ref.watch (genericFeedStateProvider (feedFilter));
198+ final genericFeedStateNoti =
199199 ref.read (genericFeedStateProvider (feedFilter).notifier);
200200
201201 return _BuildScrollablePostsList (
202- itemCount: profileFeedStateP .timelineRootAndReplyNotes.length + 1 ,
202+ itemCount: genericFeedStateP .timelineRootAndReplyNotes.length + 1 ,
203203 itemBuilder: (context, index) {
204- if (index == profileFeedStateP .timelineRootAndReplyNotes.length) {
205- if (profileFeedStateP .endOfRootAndReplyNotes) {
204+ if (index == genericFeedStateP .timelineRootAndReplyNotes.length) {
205+ if (genericFeedStateP .endOfRootAndReplyNotes) {
206206 return NoMoreNotes ();
207207 }
208208 return SkeletonNote (
209209 renderCallback: () {
210- profileFeedStateNoti .loadMore ();
210+ genericFeedStateNoti .loadMore ();
211211 },
212212 );
213213 }
214214 return NoteCardContainer (
215215 key: PageStorageKey (
216- profileFeedStateP .timelineRootAndReplyNotes[index].id,
216+ genericFeedStateP .timelineRootAndReplyNotes[index].id,
217217 ),
218- note: profileFeedStateP .timelineRootAndReplyNotes[index],
218+ note: genericFeedStateP .timelineRootAndReplyNotes[index],
219219 );
220220 },
221221 );
0 commit comments