mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt msg item
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: '查看更多',
|
||||||
|
|||||||
@@ -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(),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user