SebastienBtr/Dash-Chat-2

[Bug] Rouge padding on bottom of MessageList / ListView.builder

Closed this issue · 0 comments

Describe the bug

There is a rogue padding at the bottom of the ListViewBuilder. It looks to be added from the SilverPadding.

See: https://api.flutter.dev/flutter/widgets/ListView-class.html

"By default, ListView will automatically pad the list's scrollable extremities to avoid partial obstructions indicated by MediaQuery's padding. To avoid this behavior, override with a zero padding property."

This also leads to un wanted jumping when coming in and out of the input as there is no padding added when focused in the input.

To Reproduce

Steps to reproduce the behavior:

  1. Spin the example app up
  2. Go to basic example
  3. Observe extra padding at the bottom of the list

Expected behavior

No extra padding to be on the bottom of the list.

RPReplay_Final1675419428.MP4

Screenshots

Broken:

RPReplay_Final1675419451.MP4

Environment

  • OS: Mac
  • Device: iPhone 14 Pro
  • Flutter Version: 3.7
  • Software/library Version: latest

Additional context

I opened a PR to fix this: #38