mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix: settings page scrollbar position
This commit is contained in:
parent
722dd86810
commit
ee8229020b
@ -114,8 +114,9 @@ class SearchPage extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
color: theme.scaffoldBackgroundColor,
|
color: theme.scaffoldBackgroundColor,
|
||||||
child: TextField(
|
child: TextField(
|
||||||
autofocus:
|
autofocus: queries
|
||||||
queries.none((s) => s.hasPageData && !s.hasPageError),
|
.none((s) => s.hasPageData && !s.hasPageError) &&
|
||||||
|
!kIsMobile,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
prefixIcon: const Icon(SpotubeIcons.search),
|
prefixIcon: const Icon(SpotubeIcons.search),
|
||||||
hintText: "${context.l10n.search}...",
|
hintText: "${context.l10n.search}...",
|
||||||
|
@ -30,12 +30,13 @@ class SettingsPage extends HookConsumerWidget {
|
|||||||
title: Text(context.l10n.settings),
|
title: Text(context.l10n.settings),
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
),
|
),
|
||||||
body: Row(
|
body: Scrollbar(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
controller: controller,
|
||||||
children: [
|
child: Center(
|
||||||
Flexible(
|
child: ConstrainedBox(
|
||||||
child: Container(
|
constraints: const BoxConstraints(maxWidth: 1366),
|
||||||
constraints: const BoxConstraints(maxWidth: 1366),
|
child: ScrollConfiguration(
|
||||||
|
behavior: const ScrollBehavior().copyWith(scrollbars: false),
|
||||||
child: ListView(
|
child: ListView(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
children: [
|
children: [
|
||||||
@ -59,7 +60,7 @@ class SettingsPage extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user