appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

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

Open ganluo960214 opened this issue 1 year ago • 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

https://github.com/AppFlowy-IO/appflowy-editor/assets/8499204/03fa3c3d-36a8-43e9-913d-10e443629e98

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);
  }
}

ganluo960214 avatar Apr 01 '24 10:04 ganluo960214