chore: clean up

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-20 11:21:19 +08:00
parent ed60c274fc
commit 538494b7ec
90 changed files with 495 additions and 1816 deletions

View File

@@ -9,6 +9,9 @@ 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();
@@ -115,6 +118,7 @@ class SSearchController extends GetxController {
await Get.toNamed(
'/searchResult',
parameters: {
'tag': tag,
'keyword': controller.text,
},
arguments: {

View File

@@ -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(),
SSearchController(_tag),
tag: _tag,
);
@@ -67,7 +67,6 @@ 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,