mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
chore: code clean up
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -42,7 +42,7 @@ Widget searchLivePanel(BuildContext context, ctr, loadingState) {
|
||||
|
||||
class LiveItem extends StatelessWidget {
|
||||
final dynamic liveItem;
|
||||
const LiveItem({Key? key, required this.liveItem}) : super(key: key);
|
||||
const LiveItem({super.key, required this.liveItem});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -109,7 +109,7 @@ class LiveItem extends StatelessWidget {
|
||||
|
||||
class LiveContent extends StatelessWidget {
|
||||
final dynamic liveItem;
|
||||
const LiveContent({Key? key, required this.liveItem}) : super(key: key);
|
||||
const LiveContent({super.key, required this.liveItem});
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Expanded(
|
||||
@@ -159,8 +159,7 @@ class LiveStat extends StatelessWidget {
|
||||
final int? online;
|
||||
final String? cateName;
|
||||
|
||||
const LiveStat({Key? key, required this.online, this.cateName})
|
||||
: super(key: key);
|
||||
const LiveStat({super.key, required this.online, this.cateName});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
import 'package:PiliPalaX/common/widgets/http_error.dart';
|
||||
import 'package:PiliPalaX/http/loading_state.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:PiliPalaX/common/constants.dart';
|
||||
import 'package:PiliPalaX/common/widgets/badge.dart';
|
||||
import 'package:PiliPalaX/common/widgets/network_img_layer.dart';
|
||||
import 'package:PiliPalaX/http/search.dart';
|
||||
import 'package:PiliPalaX/models/bangumi/info.dart';
|
||||
import 'package:PiliPalaX/models/common/search_type.dart';
|
||||
import 'package:PiliPalaX/utils/utils.dart';
|
||||
|
||||
import '../../../utils/grid.dart';
|
||||
|
||||
@@ -18,8 +18,8 @@ class SearchVideoPanel extends StatelessWidget {
|
||||
SearchVideoPanel({
|
||||
required this.ctr,
|
||||
required this.loadingState,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
final SearchPanelController ctr;
|
||||
final dynamic loadingState;
|
||||
@@ -55,7 +55,7 @@ class SearchVideoPanel extends StatelessWidget {
|
||||
type: i['type'],
|
||||
selectedType: controller.selectedType.value,
|
||||
callFn: (bool selected) async {
|
||||
print('selected: $selected');
|
||||
debugPrint('selected: $selected');
|
||||
controller.selectedType.value = i['type'];
|
||||
ctr.order.value =
|
||||
i['type'].toString().split('.').last;
|
||||
@@ -136,8 +136,8 @@ class CustomFilterChip extends StatelessWidget {
|
||||
this.type,
|
||||
this.selectedType,
|
||||
this.callFn,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
final String? label;
|
||||
final ArchiveFilterType? type;
|
||||
|
||||
Reference in New Issue
Block a user