AppFlowy-IO/appflowy-editor

[Bug] keyboard will not popup when tap with empty text

Opened this issue · 0 comments

Bug Description

keyboard will not popup when tap with empty text

How to Reproduce

just tap.

Expected Behavior

the keyboard pop

Operating System

android

AppFlowy Editor Version(s)

2.3.3

Screenshots

Recording.2024-04-01.183655.mp4

Additional Context

import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const Scaffold(
        body: SafeArea(
          child: Demo(),
        ),
      ),
    );
  }
}

class Demo extends StatefulWidget {
  const Demo({super.key});

  @override
  State<Demo> createState() => _DemoState();
}

class _DemoState extends State<Demo> {

  final editorState = EditorState(document: Document.blank(withInitialText: true));

  @override
  Widget build(BuildContext context) {
    return AppFlowyEditor(editorState: editorState);
  }
}