feat: coin log

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-09 19:30:52 +08:00
parent 63a286056c
commit f1e4130201
28 changed files with 323 additions and 117 deletions

View File

@@ -160,6 +160,10 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
Widget _buildBody(
ThemeData theme, LoadingState<List<VideoNoteItemModel>?> loadingState) {
late final divider = Divider(
height: 1,
color: theme.colorScheme.outline.withValues(alpha: 0.1),
);
return switch (loadingState) {
Loading() => SliverToBoxAdapter(
child: ListView.builder(
@@ -180,10 +184,7 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
return _itemWidget(theme, response[index]);
},
itemCount: response!.length,
separatorBuilder: (context, index) => Divider(
height: 1,
color: theme.colorScheme.outline.withValues(alpha: 0.1),
),
separatorBuilder: (context, index) => divider,
)
: HttpError(onReload: _controller.onReload),
Error(:var errMsg) => HttpError(

View File

@@ -87,6 +87,10 @@ class _ViewPointsPageState
@override
Widget buildList(ThemeData theme) {
final divider = Divider(
height: 1,
color: theme.dividerColor.withValues(alpha: 0.1),
);
return ListView.separated(
controller: ScrollController(),
physics: const AlwaysScrollableScrollPhysics(),
@@ -157,10 +161,7 @@ class _ViewPointsPageState
),
);
},
separatorBuilder: (context, index) => Divider(
height: 1,
color: theme.dividerColor.withValues(alpha: 0.1),
),
separatorBuilder: (context, index) => divider,
);
}
}