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

TodolistBlock and BulletListBlock and NumberedListBlock can not set padding for it's type

Open lucasjinreal opened this issue 4 months ago • 1 comments

TodoListBlockKeys.type: TodoListBlockComponentBuilder(
      configuration: configuration.copyWith(
        placeholderText: (_) => LocaleKeys.blockPlaceholders_todoList(context),
        padding: (node) => EdgeInsets.all(0),
      ),
      iconBuilder:
          (_, node, onCheck) => TodoListIcon(node: node, onCheck: onCheck),
      toggleChildrenTriggers: [
        LogicalKeyboardKey.shift,
        LogicalKeyboardKey.shiftLeft,
        LogicalKeyboardKey.shiftRight,
      ],
    ),

I had set the paddign to zero, but the 3 types of block just toooo large:

Image

Any proper way could do it exaclty>

lucasjinreal avatar Aug 02 '25 15:08 lucasjinreal

Updates: I found I can set the padding to larger like 64, but can not remove the default padding, Is there any further default padding I not aware?

I have disabled EditorStyle padding to zero, and BlockCompoenent for all padding to zero, there still have padding in vertical between todoList or umberedList

lucasjinreal avatar Aug 03 '25 01:08 lucasjinreal