question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ListView: when sroll, next sticky header should push prev sticky header to top

See original GitHub issue

List.Item 会挡,List.renderHeader 不会。 Card 整体都会挡住 ListView sticky SectionHeader

去掉以下 css 会露出来

.am-list-body .am-list-item {
  position: relative;
}

2017-06-16 17 13 02

Version

1.3.0

Environment

web

Reproduction link

https://codepen.io/colder/pen/QgGzxq

Steps to reproduce

list or card as row

What is expected?

sticky section header fixed top

What is actually happening?

card and list item cover section header

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
warmhugcommented, Jun 19, 2017

@cncolder list 确实是可用也可不用、rmc-list-view 里就没用到。不过 antd-mobile 里 listview 用 list ,是考虑到 header footer 等样式和 list 的一致,就集成进来了 list 的样式名及样式,除了 list.item 还有 list.body list.header footer 等样式名。 image image

.am-list-item {
  position: relative;  // 这个不能去掉,list 里 ripple 或边线的 css position 设置需要这个
}

此问题解决办法:

<ListView ... stickyProps={{ stickyStyle: { zIndex: 999} }} />
0reactions
warmhugcommented, Jan 5, 2018

@chenghaohao 就会出现这种情况?是什么情况没明确,新开 issue 明确描述。这个 issue 跟你这个情况也没关系的。

Read more comments on GitHub >

github_iconTop Results From Across the Web

flutter implement sticky headers and the snap to item effect
As for the snap effect, it can be achieved with a scroll controller on your scroll element. Add a listener, and on scroll...
Read more >
Flutter: Sticky Header in ListView - YouTube
Add Sticky Headers to a ListView in Flutter that will stick to the top while the ListView is scrolled.Click here to Subscribe to...
Read more >
Flutter Tutorial - Sticky Headers In ListView & Sliver Tools
Let's use Flutter slivers & sticky headers to customize the scrolling behaviour of our Newspaper ListView.Click here to Subscribe to ...
Read more >
sticky_headers | Flutter Package - Pub.dev
Flutter Sticky Headers - Lets you place headers on scrollable content that will stick to the top of the container whilst the content...
Read more >
Create a Sticky Footer With a Scrollable Body View in Flutter
Create a Widget that contains a Header And most importantly a Footer which obviously should remain in the end of your screen.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found