mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
desktop debug shows search bar when scrolling
This commit is contained in:
parent
5f863bb35a
commit
bd0b01efcd
1 changed files with 57 additions and 65 deletions
|
@ -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 [],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue