mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 无障碍语义适配
This commit is contained in:
@@ -64,7 +64,10 @@ class SSearchController extends GetxController {
|
||||
void submit() {
|
||||
// ignore: unrelated_type_equality_checks
|
||||
if (searchKeyWord == '') {
|
||||
return;
|
||||
if (hintText == ''){
|
||||
return;
|
||||
}
|
||||
searchKeyWord.value = hintText;
|
||||
}
|
||||
List arr = historyCacheList.where((e) => e != searchKeyWord.value).toList();
|
||||
arr.insert(0, searchKeyWord.value);
|
||||
|
||||
@@ -53,6 +53,7 @@ class _SearchPageState extends State<SearchPage> with RouteAware {
|
||||
titleSpacing: 0,
|
||||
actions: [
|
||||
IconButton(
|
||||
tooltip: '搜索',
|
||||
onPressed: () => _searchController.submit(),
|
||||
icon: const Icon(CupertinoIcons.search, size: 22),
|
||||
),
|
||||
@@ -69,6 +70,7 @@ class _SearchPageState extends State<SearchPage> with RouteAware {
|
||||
hintText: _searchController.hintText,
|
||||
border: InputBorder.none,
|
||||
suffixIcon: IconButton(
|
||||
tooltip: '清空',
|
||||
icon: Icon(
|
||||
Icons.clear,
|
||||
size: 22,
|
||||
|
||||
Reference in New Issue
Block a user