Skip to content

Bug: Keyboard not appearing on textfields for Android 9 (pie - api 28)  #21911

@abacaj

Description

@abacaj

Not sure what I'm doing wrong - but the keyboard does not appear on my Android 9 device.

Here is a simple example (even this doesn't work):

import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      title: 'Test',
      theme: ThemeData(backgroundColor: Colors.white),
      home: Scaffold(
        body: 
        Padding(
          padding: EdgeInsets.all(50.0),
          child: TextField(
              onChanged: (String val) => print(val),
              autofocus: false,
              decoration:  InputDecoration(labelText: "E-mail address", 
              labelStyle:  TextStyle(color: Colors.black45, fontSize: 18.0, height: 1.0), 
              contentPadding: EdgeInsets.only(bottom: 3.0)),
              style: TextStyle(color: Colors.black, height: 1.3, fontSize: 16.0),
            ))
      )
    )
  );
}

Flutter doctor:

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v0.7.3-pre.4, on Mac OS X 10.13.4 17E199, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
[✓] Android Studio (version 3.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.27.1)
[✓] Connected devices (2 available)

Here's a video demo:
https://streamable.com/ightg

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.frameworkflutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions