mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-30 23:40:13 +08:00
@@ -153,7 +153,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||
text: e.text,
|
||||
style: e.isEm
|
||||
? TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontWeight: .bold,
|
||||
color: Theme.of(
|
||||
context,
|
||||
).colorScheme.primary,
|
||||
@@ -181,7 +181,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||
strutStyle: const StrutStyle(leading: 0, height: 1),
|
||||
style: theme.textTheme.titleMedium!.copyWith(
|
||||
height: 1,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontWeight: .bold,
|
||||
),
|
||||
);
|
||||
final outline = theme.colorScheme.outline;
|
||||
@@ -192,7 +192,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||
color: outline,
|
||||
);
|
||||
return SliverPadding(
|
||||
padding: EdgeInsets.fromLTRB(
|
||||
padding: .fromLTRB(
|
||||
10,
|
||||
!isTrending && (isPortrait || _searchController.enableTrending)
|
||||
? 4
|
||||
@@ -203,10 +203,10 @@ class _SearchPageState extends State<SearchPage> {
|
||||
sliver: SliverMainAxisGroup(
|
||||
slivers: [
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.fromLTRB(6, 0, 6, 6),
|
||||
padding: const .fromLTRB(6, 0, 6, 6),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
mainAxisAlignment: .spaceBetween,
|
||||
children: [
|
||||
isTrending
|
||||
? Row(
|
||||
@@ -263,10 +263,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||
label: Text(
|
||||
'刷新',
|
||||
strutStyle: const StrutStyle(leading: 0, height: 1),
|
||||
style: TextStyle(
|
||||
height: 1,
|
||||
color: secondary,
|
||||
),
|
||||
style: TextStyle(height: 1, color: secondary),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -296,7 +293,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||
}
|
||||
final secondary = theme.colorScheme.secondary;
|
||||
return SliverPadding(
|
||||
padding: EdgeInsets.fromLTRB(
|
||||
padding: .fromLTRB(
|
||||
10,
|
||||
!isPortrait
|
||||
? 25
|
||||
@@ -309,7 +306,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||
sliver: SliverMainAxisGroup(
|
||||
slivers: [
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.fromLTRB(6, 0, 6, 6),
|
||||
padding: const .fromLTRB(6, 0, 6, 6),
|
||||
sliver: SliverToBoxAdapter(
|
||||
child: Row(
|
||||
children: [
|
||||
@@ -318,7 +315,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||
strutStyle: const StrutStyle(leading: 0, height: 1),
|
||||
style: theme.textTheme.titleMedium!.copyWith(
|
||||
height: 1,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontWeight: .bold,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
@@ -341,10 +338,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||
),
|
||||
label: Text(
|
||||
'清空',
|
||||
style: TextStyle(
|
||||
height: 1,
|
||||
color: secondary,
|
||||
),
|
||||
style: TextStyle(height: 1, color: secondary),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -365,10 +359,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||
onLongPress: _searchController.onLongSelect,
|
||||
fontSize: 14,
|
||||
height: 1,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 11,
|
||||
vertical: 8,
|
||||
),
|
||||
padding: const .fromLTRB(11, 8, 11, 0),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -38,20 +38,20 @@ class SliverHotKeyword extends StatelessWidget {
|
||||
children: hotSearchList
|
||||
.map(
|
||||
(i) => Material(
|
||||
type: MaterialType.transparency,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(3)),
|
||||
type: .transparency,
|
||||
borderRadius: const .all(.circular(3)),
|
||||
child: InkWell(
|
||||
borderRadius: const BorderRadius.all(Radius.circular(3)),
|
||||
borderRadius: const .all(.circular(3)),
|
||||
onTap: () => onClick?.call(i.keyword),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 2, right: 10),
|
||||
padding: const .only(left: 2, right: 10),
|
||||
child: Tooltip(
|
||||
message: i.keyword,
|
||||
child: Row(
|
||||
children: [
|
||||
Flexible(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(6, 5, 0, 5),
|
||||
padding: const .fromLTRB(6, 5, 0, 5),
|
||||
child: Text(
|
||||
i.keyword!,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
@@ -62,7 +62,7 @@ class SliverHotKeyword extends StatelessWidget {
|
||||
),
|
||||
if (!i.icon.isNullOrEmpty)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 4),
|
||||
padding: const .only(left: 4),
|
||||
child: CachedNetworkImage(
|
||||
height: 15,
|
||||
memCacheHeight: cacheHeight,
|
||||
@@ -72,7 +72,7 @@ class SliverHotKeyword extends StatelessWidget {
|
||||
)
|
||||
else if (i.showLiveIcon == true)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 4),
|
||||
padding: const .only(left: 4),
|
||||
child: Image.asset(
|
||||
Assets.livingRect,
|
||||
width: 48,
|
||||
|
||||
Reference in New Issue
Block a user