mod: 代码整理

This commit is contained in:
guozhigq
2023-07-25 23:44:09 +08:00
parent 6d9f66c420
commit 7745ea076b
74 changed files with 387 additions and 424 deletions

View File

@ -11,10 +11,10 @@ import 'widgets/user_panel.dart';
import 'widgets/video_panel.dart';
class SearchPanel extends StatefulWidget {
String? keyword;
SearchType? searchType;
String? tag;
SearchPanel(
final String? keyword;
final SearchType? searchType;
final String? tag;
const SearchPanel(
{required this.keyword, required this.searchType, this.tag, Key? key})
: super(key: key);
@ -57,6 +57,7 @@ class _SearchPanelState extends State<SearchPanel>
@override
Widget build(BuildContext context) {
super.build(context);
return RefreshIndicator(
onRefresh: () async {
await _searchPanelController!.onRefresh();

View File

@ -37,7 +37,6 @@ Widget searchLivePanel(BuildContext context, ctr, list) {
child: LayoutBuilder(builder: (context, boxConstraints) {
double maxWidth = boxConstraints.maxWidth;
double maxHeight = boxConstraints.maxHeight;
double PR = MediaQuery.of(context).devicePixelRatio;
return Stack(
children: [
Hero(
@ -79,7 +78,7 @@ Widget searchLivePanel(BuildContext context, ctr, list) {
}
class LiveContent extends StatelessWidget {
final liveItem;
final dynamic liveItem;
const LiveContent({Key? key, required this.liveItem}) : super(key: key);
@override
Widget build(BuildContext context) {

View File

@ -71,7 +71,6 @@ Widget searchUserPanel(BuildContext context, ctr, list) {
),
),
);
;
},
);
}