mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-12 20:30:13 +08:00
@@ -104,7 +104,7 @@ class _DynamicsPageState extends State<DynamicsPage>
|
||||
);
|
||||
|
||||
switch (upPanelPosition) {
|
||||
case UpPanelPosition.top:
|
||||
case .top:
|
||||
child = Column(
|
||||
children: [
|
||||
upPanelPart(theme, isTop: true),
|
||||
@@ -112,7 +112,7 @@ class _DynamicsPageState extends State<DynamicsPage>
|
||||
],
|
||||
);
|
||||
actions = [_createDynamicBtn(theme)];
|
||||
case UpPanelPosition.leftFixed:
|
||||
case .leftFixed:
|
||||
child = Row(
|
||||
children: [
|
||||
upPanelPart(theme),
|
||||
@@ -120,7 +120,7 @@ class _DynamicsPageState extends State<DynamicsPage>
|
||||
],
|
||||
);
|
||||
actions = [_createDynamicBtn(theme)];
|
||||
case UpPanelPosition.rightFixed:
|
||||
case .rightFixed:
|
||||
child = Row(
|
||||
children: [
|
||||
Expanded(child: child),
|
||||
|
||||
@@ -2,7 +2,6 @@ import 'package:PiliPlus/common/assets.dart';
|
||||
import 'package:PiliPlus/common/style.dart';
|
||||
import 'package:PiliPlus/common/widgets/badge.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/models/common/badge_type.dart';
|
||||
import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -51,7 +50,7 @@ Widget livePanelSub(
|
||||
top: 6,
|
||||
right: 65,
|
||||
fontSize: 10.5,
|
||||
type: PBadgeType.gray,
|
||||
type: .gray,
|
||||
),
|
||||
if (live.liveStatus == 1)
|
||||
Positioned(
|
||||
|
||||
@@ -2,7 +2,6 @@ import 'package:PiliPlus/common/assets.dart';
|
||||
import 'package:PiliPlus/common/style.dart';
|
||||
import 'package:PiliPlus/common/widgets/badge.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/models/common/badge_type.dart';
|
||||
import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -45,7 +44,7 @@ Widget liveRcmdPanel(
|
||||
top: 6,
|
||||
right: 65,
|
||||
fontSize: 10.5,
|
||||
type: PBadgeType.gray,
|
||||
type: .gray,
|
||||
),
|
||||
if (liveRcmd.liveStatus == 1)
|
||||
Positioned(
|
||||
@@ -63,7 +62,7 @@ Widget liveRcmdPanel(
|
||||
text: '直播结束',
|
||||
top: 6,
|
||||
right: 6,
|
||||
type: PBadgeType.gray,
|
||||
type: .gray,
|
||||
),
|
||||
if (liveRcmd.areaName case final areaName?)
|
||||
Positioned(
|
||||
|
||||
@@ -8,7 +8,6 @@ import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/http/search.dart';
|
||||
import 'package:PiliPlus/models/common/image_preview_type.dart'
|
||||
show SourceModel;
|
||||
import 'package:PiliPlus/models/common/image_type.dart';
|
||||
import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
import 'package:PiliPlus/pages/dynamics/widgets/vote.dart';
|
||||
import 'package:PiliPlus/utils/app_scheme.dart';
|
||||
@@ -170,7 +169,7 @@ TextSpan? richNode(
|
||||
WidgetSpan(
|
||||
child: NetworkImgLayer(
|
||||
src: i.emoji!.url,
|
||||
type: ImageType.emote,
|
||||
type: .emote,
|
||||
width: size,
|
||||
height: size,
|
||||
),
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import 'package:PiliPlus/common/assets.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/models/common/dynamic/up_panel_position.dart';
|
||||
import 'package:PiliPlus/models/common/image_type.dart';
|
||||
import 'package:PiliPlus/models/dynamics/up.dart';
|
||||
import 'package:PiliPlus/pages/dynamics/controller.dart';
|
||||
import 'package:PiliPlus/pages/live_follow/view.dart';
|
||||
@@ -25,7 +23,7 @@ class UpPanel extends StatefulWidget {
|
||||
|
||||
class _UpPanelState extends State<UpPanel> {
|
||||
late final controller = widget.dynamicsController;
|
||||
late final isTop = controller.upPanelPosition == UpPanelPosition.top;
|
||||
late final isTop = controller.upPanelPosition == .top;
|
||||
|
||||
void toFollowPage() => Get.to(const LiveFollowPage());
|
||||
|
||||
@@ -171,7 +169,7 @@ class _UpPanelState extends State<UpPanel> {
|
||||
width: 38,
|
||||
height: 38,
|
||||
src: data.face,
|
||||
type: ImageType.avatar,
|
||||
type: .avatar,
|
||||
),
|
||||
);
|
||||
if (isLive) {
|
||||
|
||||
@@ -3,7 +3,6 @@ import 'package:PiliPlus/common/assets.dart';
|
||||
import 'package:PiliPlus/common/style.dart';
|
||||
import 'package:PiliPlus/common/widgets/badge.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/models/common/badge_type.dart';
|
||||
import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
import 'package:PiliPlus/utils/num_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -65,8 +64,8 @@ Widget videoSeasonWidget(
|
||||
bottom: null,
|
||||
left: null,
|
||||
type: switch (badge) {
|
||||
'充电专属' => PBadgeType.error,
|
||||
_ => PBadgeType.primary,
|
||||
'充电专属' => .error,
|
||||
_ => .primary,
|
||||
},
|
||||
),
|
||||
Positioned(
|
||||
|
||||
@@ -6,7 +6,6 @@ import 'package:PiliPlus/common/widgets/dialog/report.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/http/dynamics.dart';
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/models/common/badge_type.dart';
|
||||
import 'package:PiliPlus/models/common/image_preview_type.dart';
|
||||
import 'package:PiliPlus/models/dynamics/vote_model.dart';
|
||||
import 'package:PiliPlus/models_new/followee_votes/vote.dart';
|
||||
@@ -393,7 +392,7 @@ class _VotePanelState extends State<VotePanel> {
|
||||
PBadge(
|
||||
right: 6,
|
||||
bottom: 8,
|
||||
type: PBadgeType.primary,
|
||||
type: .primary,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 3,
|
||||
vertical: 1,
|
||||
|
||||
Reference in New Issue
Block a user