mod: 代码整理
This commit is contained in:
@ -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();
|
||||
|
@ -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) {
|
||||
|
@ -71,7 +71,6 @@ Widget searchUserPanel(BuildContext context, ctr, list) {
|
||||
),
|
||||
),
|
||||
);
|
||||
;
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user