Repository navigation
Keyboard transition shows Scaffold background color #97054
Copy link
Copy link
Closed
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsfound in release: 2.8Found to occur in 2.8Found to occur in 2.8found in release: 2.9Found to occur in 2.9Found to occur in 2.9frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue
Description
Code to Reproduce
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.red,
body: SingleChildScrollView(
child: Container(
color: Colors.white,
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
child: Column(
children: [
TextFormField(),
TextFormField(),
TextFormField(),
TextFormField(),
TextFormField(),
TextFormField(),
TextFormField(),
TextFormField(),
TextFormField(),
TextFormField(),
TextFormField(),
],
)),
),
);
}Step to reproduce
Click any field that will be underneath the keyboard and you should see the background color appearing.
You will see it even better when the keyboard closes.
Demo
Like here you can see that the scaffold color is appearing instead of being transparent
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsfound in release: 2.8Found to occur in 2.8Found to occur in 2.8found in release: 2.9Found to occur in 2.9Found to occur in 2.9frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue

Activity
maheshj01 commentedon Jan 24, 2022
Hi @Andrflor, Thanks for filing the issue. I am able to reproduce the same behavior on the stable and the master channel. When closing the keyboard scaffold background color is shown. Not sure if this is intended this happens on both IOS and Android
Screen.Recording.2022-01-24.at.3.30.39.PM.mov
Screen.Recording.2022-01-24.at.3.48.04.PM.mov
flutter doctor -v
cc: @justinmc
[-]Keyboard transition show Scaffold background color[/-][+]Keyboard transition shows Scaffold background color[/+]HansMuller commentedon Jan 24, 2022
This may be an example of a known problem with antialiasing and mapping from logical pixels to device pixels. There's an open issue for a documentation fix: #14288
More info about the problem can be found here:
#14288 (comment)
#17084 (comment)
#15035 (comment)
maheshj01 commentedon Jan 25, 2022
Closing as duplicate of #14288
github-actions commentedon Feb 8, 2022
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 -vand a minimal reproduction of the issue.