mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -9,9 +9,6 @@ import 'package:PiliPlus/utils/storage.dart';
|
||||
import 'package:get/get_rx/src/rx_workers/utils/debouncer.dart';
|
||||
|
||||
class SSearchController extends GetxController {
|
||||
SSearchController(this.tag);
|
||||
final String tag;
|
||||
|
||||
final searchFocusNode = FocusNode();
|
||||
final controller = TextEditingController();
|
||||
|
||||
@@ -118,7 +115,6 @@ class SSearchController extends GetxController {
|
||||
await Get.toNamed(
|
||||
'/searchResult',
|
||||
parameters: {
|
||||
'tag': tag,
|
||||
'keyword': controller.text,
|
||||
},
|
||||
arguments: {
|
||||
|
||||
@@ -21,7 +21,7 @@ class SearchPage extends StatefulWidget {
|
||||
class _SearchPageState extends State<SearchPage> {
|
||||
final _tag = Utils.generateRandomString(6);
|
||||
late final SSearchController _searchController = Get.put(
|
||||
SSearchController(_tag),
|
||||
SSearchController(),
|
||||
tag: _tag,
|
||||
);
|
||||
|
||||
@@ -67,6 +67,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||
controller: _searchController.controller,
|
||||
textInputAction: TextInputAction.search,
|
||||
onChanged: _searchController.onChange,
|
||||
// textAlignVertical: TextAlignVertical.center,
|
||||
decoration: InputDecoration(
|
||||
hintText: _searchController.hintText,
|
||||
border: InputBorder.none,
|
||||
|
||||
Reference in New Issue
Block a user