opt msg item

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-24 19:02:12 +08:00
parent 11fbd2ebed
commit 61bc4ce5b1
3 changed files with 19 additions and 23 deletions

View File

@@ -146,7 +146,7 @@ class MineController
Future<LoadingState<FavFolderData>> customGetData() {
return FavHttp.userfavFolder(
pn: 1,
ps: 5,
ps: 20,
mid: accountService.mid,
);
}

View File

@@ -485,12 +485,12 @@ class _MediaPageState extends CommonPageState<MinePage, MineController>
return SizedBox(
height: 200,
child: ListView.separated(
padding: const EdgeInsets.only(left: 20, top: 12),
padding: const EdgeInsets.only(left: 20, top: 12, right: 20),
itemCount: response.list.length + (flag ? 1 : 0),
itemBuilder: (context, index) {
if (flag && index == favFolderList.length) {
return Padding(
padding: const EdgeInsets.only(right: 14, bottom: 35),
padding: const EdgeInsets.only(bottom: 35),
child: Center(
child: IconButton(
tooltip: '查看更多',

View File

@@ -704,28 +704,24 @@ class ChatItem extends StatelessWidget {
),
),
Divider(color: theme.colorScheme.primary.withValues(alpha: 0.05)),
SelectableText(content['text']),
if ((content['text'] as String?)?.isNotEmpty == true)
SelectableText(content['text']),
if (modules?.isNotEmpty == true) ...[
const SizedBox(height: 4),
Text.rich(
TextSpan(
children: modules!.indexed
.map(
(e) => TextSpan(
children: [
TextSpan(
text: e.$2['title'],
style: TextStyle(
color: theme.colorScheme.outline,
),
),
TextSpan(text: ' ${e.$2['detail']}'),
if (e.$1 != modules.length - 1)
const TextSpan(text: '\n'),
],
),
)
.toList(),
...modules!.map(
(e) => Row(
spacing: 10,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
width: 80,
child: Text(
e['title'],
style: TextStyle(color: theme.colorScheme.outline),
),
),
Expanded(child: Text(e['detail'])),
],
),
),
],