mod: 代码整理
This commit is contained in:
@ -19,9 +19,6 @@ class LivePage extends StatefulWidget {
|
||||
class _LivePageState extends State<LivePage> {
|
||||
final LiveController _liveController = Get.put(LiveController());
|
||||
|
||||
@override
|
||||
bool get wantKeepAlive => true;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
|
||||
@ -8,11 +8,11 @@ import 'package:pilipala/common/widgets/network_img_layer.dart';
|
||||
|
||||
// 视频卡片 - 垂直布局
|
||||
class LiveCardV extends StatelessWidget {
|
||||
LiveItemModel liveItem;
|
||||
Function()? longPress;
|
||||
Function()? longPressEnd;
|
||||
final LiveItemModel liveItem;
|
||||
final Function()? longPress;
|
||||
final Function()? longPressEnd;
|
||||
|
||||
LiveCardV({
|
||||
const LiveCardV({
|
||||
Key? key,
|
||||
required this.liveItem,
|
||||
this.longPress,
|
||||
@ -97,7 +97,7 @@ class LiveCardV extends StatelessWidget {
|
||||
}
|
||||
|
||||
class LiveContent extends StatelessWidget {
|
||||
final liveItem;
|
||||
final dynamic liveItem;
|
||||
const LiveContent({Key? key, required this.liveItem}) : super(key: key);
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@ -123,7 +123,7 @@ class LiveContent extends StatelessWidget {
|
||||
const SizedBox(height: 4),
|
||||
Row(
|
||||
children: [
|
||||
UpTag(),
|
||||
const UpTag(),
|
||||
Expanded(
|
||||
child: Text(
|
||||
liveItem.uname,
|
||||
|
||||
Reference in New Issue
Block a user