💄 Optimize articles view
This commit is contained in:
@@ -101,7 +101,7 @@ class SliverArticlesList extends ConsumerWidget {
|
|||||||
publisherId: publisherId,
|
publisherId: publisherId,
|
||||||
).notifier,
|
).notifier,
|
||||||
contentBuilder:
|
contentBuilder:
|
||||||
(data, widgetCount, endItemView) => SliverList.builder(
|
(data, widgetCount, endItemView) => SliverList.separated(
|
||||||
itemCount: widgetCount,
|
itemCount: widgetCount,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
if (index == widgetCount - 1) {
|
if (index == widgetCount - 1) {
|
||||||
@@ -111,6 +111,7 @@ class SliverArticlesList extends ConsumerWidget {
|
|||||||
final article = data.items[index];
|
final article = data.items[index];
|
||||||
return WebArticleCard(article: article, showDetails: true);
|
return WebArticleCard(article: article, showDetails: true);
|
||||||
},
|
},
|
||||||
|
separatorBuilder: (context, index) => const SizedBox(height: 12),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -155,7 +156,7 @@ class ArticlesScreen extends ConsumerWidget {
|
|||||||
slivers: [
|
slivers: [
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: const EdgeInsets.only(
|
padding: const EdgeInsets.only(
|
||||||
top: 8,
|
top: 12,
|
||||||
left: 8,
|
left: 8,
|
||||||
right: 8,
|
right: 8,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user