mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
opt search trending header
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -58,7 +58,8 @@ class _SearchTrendingPageState extends State<SearchTrendingPage> {
|
|||||||
final width = constraints.maxWidth > constraints.maxHeight
|
final width = constraints.maxWidth > constraints.maxHeight
|
||||||
? min(640.0, maxWidth * 0.6)
|
? min(640.0, maxWidth * 0.6)
|
||||||
: maxWidth;
|
: maxWidth;
|
||||||
_offset = width * 528 / 1125 - 56 - Get.mediaQuery.padding.top;
|
final height = width * 528 / 1125;
|
||||||
|
_offset = height - 56 - Get.mediaQuery.padding.top;
|
||||||
listener();
|
listener();
|
||||||
final removePadding = maxWidth > width;
|
final removePadding = maxWidth > width;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
@@ -116,8 +117,9 @@ class _SearchTrendingPageState extends State<SearchTrendingPage> {
|
|||||||
slivers: [
|
slivers: [
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
'assets/images/trending_banner.png',
|
'assets/images/trending_banner.png',
|
||||||
fit: BoxFit.fitWidth,
|
|
||||||
filterQuality: FilterQuality.low,
|
filterQuality: FilterQuality.low,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user