- Notifications
You must be signed in to change notification settings - Fork29.7k
Closed
Labels
P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemse: OS-version specificAffects only some versions of the relevant operating systeme: device-specificOnly manifests on certain devicesengineflutter/engine related. See also e: labels.platform-androidAndroid applications specifically
Description
- Almost every time the keyboard opens/closes, the whole screen flickers.
- When the keyboard is opened, although the scaffold takes all of the available space, its body doesn't - there is empty space below the content, as seen in the example. I noticed that locking and unlocking the phone makes that padding disappear.
OS:
Android 11, One UI 3 (Samsung device)
Flutter doctor:
[√] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.19042.789], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[!] Android Studio (version 4.1.0)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.52.1)
[√] Connected device (1 available)
Video example:
https://user-images.githubusercontent.com/35681808/106921957-2ead1000-6715-11eb-93d9-bdf42e02094d.mp4
Code for the example:
import 'package:flutter/material.dart';void main() => runApp(MyApp());class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, visualDensity: VisualDensity.adaptivePlatformDensity, ), home: KeyboardTest(), ); }}class KeyboardTest extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.purple, appBar: AppBar(title: Text('Hello')), body: Column( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Container(height: 200, width: 200, color: Colors.pink), TextField( decoration: const InputDecoration( border: InputBorder.none, filled: true, fillColor: Colors.green, ), ), ], ), ); }}Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemse: OS-version specificAffects only some versions of the relevant operating systeme: device-specificOnly manifests on certain devicesengineflutter/engine related. See also e: labels.platform-androidAndroid applications specifically