Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-21 11:48:42 +08:00
parent 1efd62803a
commit ac60ac417b
130 changed files with 1631 additions and 2132 deletions

View File

@@ -43,10 +43,8 @@ class _SearchPageState extends State<SearchPage> {
? IconButton(
tooltip: 'UID搜索用户',
icon: const Icon(Icons.person_outline, size: 22),
onPressed: () {
Get.toNamed(
'/member?mid=${_searchController.controller.text}');
},
onPressed: () => Get.toNamed(
'/member?mid=${_searchController.controller.text}'),
)
: const SizedBox.shrink(),
),
@@ -167,12 +165,10 @@ class _SearchPageState extends State<SearchPage> {
child: SizedBox(
height: 34,
child: TextButton.icon(
onPressed: () {
Get.toNamed(
'/searchTrending',
parameters: {'tag': _tag},
);
},
onPressed: () => Get.toNamed(
'/searchTrending',
parameters: {'tag': _tag},
),
label: Text(
'完整榜单',
style: TextStyle(

View File

@@ -29,14 +29,8 @@ class SearchText extends StatelessWidget {
color: bgColor ?? theme.colorScheme.onInverseSurface,
borderRadius: const BorderRadius.all(Radius.circular(6)),
child: InkWell(
onTap: () {
onTap?.call(text);
},
onLongPress: onLongPress != null
? () {
onLongPress!(text);
}
: null,
onTap: () => onTap?.call(text),
onLongPress: onLongPress != null ? () => onLongPress!(text) : null,
borderRadius: const BorderRadius.all(Radius.circular(6)),
child: Padding(
padding: padding ??