mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -178,7 +178,7 @@ Widget addWidget(
|
||||
: btn.disable == 1
|
||||
? null
|
||||
: () async {
|
||||
var res = await DynamicsHttp.dynReserve(
|
||||
final res = await DynamicsHttp.dynReserve(
|
||||
reserveId: reserve.rid,
|
||||
curBtnStatus: btn.status,
|
||||
dynamicIdStr: idStr,
|
||||
|
||||
@@ -274,7 +274,7 @@ class AuthorPanel extends StatelessWidget {
|
||||
onTap: () async {
|
||||
Get.back();
|
||||
try {
|
||||
var res = await UserHttp.toViewLater(bvid: bvid);
|
||||
final res = await UserHttp.toViewLater(bvid: bvid);
|
||||
SmartDialog.showToast(res['msg']);
|
||||
} catch (err) {
|
||||
SmartDialog.showToast('出错了:${err.toString()}');
|
||||
|
||||
@@ -89,11 +89,13 @@ class DynamicPanel extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
if (!isDetail) ...[
|
||||
if (item.modules.moduleInteraction case final moduleInteraction?)
|
||||
if (moduleInteraction.items?.isNotEmpty == true)
|
||||
if (item.modules.moduleInteraction case ModuleInteraction(
|
||||
:final items,
|
||||
))
|
||||
if (items != null && items.isNotEmpty)
|
||||
dynInteraction(
|
||||
theme: theme,
|
||||
items: moduleInteraction.items!,
|
||||
items: items,
|
||||
),
|
||||
ActionPanel(item: item),
|
||||
if (item.modules.moduleFold case final moduleFold?) ...[
|
||||
|
||||
@@ -50,7 +50,7 @@ TextSpan? richNode(
|
||||
if (richTextNodes == null || richTextNodes.isEmpty) {
|
||||
return null;
|
||||
} else {
|
||||
for (var i in richTextNodes) {
|
||||
for (final i in richTextNodes) {
|
||||
switch (i.type) {
|
||||
case 'RICH_TEXT_NODE_TYPE_TEXT':
|
||||
spanChildren.add(
|
||||
@@ -289,7 +289,7 @@ TextSpan? richNode(
|
||||
|
||||
DynamicsHttp.dynPic(i.rid).then((res) {
|
||||
if (res.isSuccess) {
|
||||
var list = res.data;
|
||||
final list = res.data;
|
||||
if (Platform.isAndroid) {
|
||||
i.pics = list;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user