Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra line rendered when using Padding #15519

Closed
brianegan opened this issue Mar 14, 2018 · 3 comments
Closed

Extra line rendered when using Padding #15519

brianegan opened this issue Mar 14, 2018 · 3 comments

Comments

@brianegan
Copy link
Contributor

brianegan commented Mar 14, 2018

Steps to Reproduce

  1. Create a custom PreferredSizeWidget (for use in the appBar of a Scaffold)
  2. Place a Container with a Background Color as the root Widget within the PreferredSizeWidget
  3. Add padding to the Container
  4. Launch on PixelXL device.
  5. Notice Extra Line
  6. Launch on emulator / iOS simulator
  7. No such line exists

Sorry I can't share the exact code -- it's a closed source project!

Temp. Fix

  1. Remove bottom padding from container
  2. Use a Column + SizedBox as the last element for extra spacing

Screenshots

PixelXL -- Extra Line under Search Box

pixelxl

Emulator (expected result)

emulator

Logs

Initializing gradle...                                0.9s
Resolving dependencies...                             0.8s
Launching lib/main.dart on Pixel XL in release mode...
Running 'gradlew assembleRelease'...                      
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
Built build/app/outputs/apk/release/app-release.apk (13.7MB).
Installing build/app/outputs/apk/app.apk...           7.9s

Run flutter analyze and attach any output of that command also.

No issues found!
Ran in 7.4s

Flutter Doctor


Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
[✓] Android Studio (version 3.0)
[✓] IntelliJ IDEA Community Edition (version 2017.3.4)
[✓] VS Code (version 1.20.0)
[✓] Connected devices (1 available)

• No issues found!
@xqwzts
Copy link
Contributor

xqwzts commented Mar 15, 2018

Sounds like this issue: #15035 (comment)

@brianegan
Copy link
Contributor Author

@xqwzts Thanks! Had searched but didn't see that one. Closing now.

@github-actions
Copy link

github-actions bot commented Sep 3, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants