desktop debug shows search bar when scrolling

This commit is contained in:
ryleedavis 2022-11-16 15:51:49 -07:00
parent 5f863bb35a
commit bd0b01efcd

View file

@ -108,31 +108,15 @@ class _DebugInfoDialog extends ConsumerState<DebugInfoDialog> {
const DesktopDialogCloseButton(),
],
),
Expanded(
// flex: 24,
child: NestedScrollView(
floatHeaderSlivers: true,
headerSliverBuilder: (context, innerBoxIsScrolled) {
return [
SliverOverlapAbsorber(
handle: NestedScrollView.sliverOverlapAbsorberHandleFor(
context),
sliver: SliverToBoxAdapter(
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 16, horizontal: 32),
child: Column(
children: [
Padding(
padding: const EdgeInsets.only(bottom: 16),
padding: EdgeInsets.symmetric(horizontal: 32),
child: ClipRRect(
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
child: TextField(
autocorrect: Util.isDesktop ? false : true,
enableSuggestions:
Util.isDesktop ? false : true,
enableSuggestions: Util.isDesktop ? false : true,
controller: searchDebugController,
focusNode: searchDebugFocusNode,
onChanged: (newString) {
@ -155,11 +139,9 @@ class _DebugInfoDialog extends ConsumerState<DebugInfoDialog> {
height: 16,
),
),
suffixIcon: searchDebugController
.text.isNotEmpty
suffixIcon: searchDebugController.text.isNotEmpty
? Padding(
padding:
const EdgeInsets.only(right: 0),
padding: const EdgeInsets.only(right: 0),
child: UnconstrainedBox(
child: Row(
children: [
@ -167,8 +149,7 @@ class _DebugInfoDialog extends ConsumerState<DebugInfoDialog> {
child: const XIcon(),
onTap: () async {
setState(() {
searchDebugController
.text = "";
searchDebugController.text = "";
_searchTerm = "";
});
},
@ -182,10 +163,21 @@ class _DebugInfoDialog extends ConsumerState<DebugInfoDialog> {
),
),
),
const SizedBox(
height: 12,
),
],
Expanded(
// flex: 24,
child: NestedScrollView(
// floatHeaderSlivers: true,
headerSliverBuilder: (context, innerBoxIsScrolled) {
return [
SliverOverlapAbsorber(
handle: NestedScrollView.sliverOverlapAbsorberHandleFor(
context),
sliver: SliverToBoxAdapter(
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 16, horizontal: 32),
child: Column(
children: const [],
),
),
),