mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-29 23:10:13 +08:00
@@ -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(
|
||||
|
||||
@@ -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 ??
|
||||
|
||||
Reference in New Issue
Block a user