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() { Future<LoadingState<FavFolderData>> customGetData() {
return FavHttp.userfavFolder( return FavHttp.userfavFolder(
pn: 1, pn: 1,
ps: 5, ps: 20,
mid: accountService.mid, mid: accountService.mid,
); );
} }

View File

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

View File

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