Skip to content

[Mobile] Paste string with new line into an indented bulleted list throws exception #522

@mtallenca

Description

@mtallenca

My issue is about [Mobile]

  1. Create a bullet list from the toolbar
  2. Paste a string with a new line in it (i.e. one\ntwo) works fine
  3. Tap indent on the toolbar
  4. Paste same string
  5. Exception thrown

QuillEditor QuillEditor:file:///Users/mike/Development/bible/lib/features/journal/note_view.dart:404:32
When the exception was thrown, this was the stack:
#0 EditableTextBlock._getIndentWidth (package:flutter_quill/src/widgets/text_block.dart:215:35)
#1 EditableTextBlock._buildChildren (package:flutter_quill/src/widgets/text_block.dart:132:11)
#2 EditableTextBlock.build (package:flutter_quill/src/widgets/text_block.dart:98:9)
#3 StatelessElement.build (package:flutter/src/widgets/framework.dart:4662:28)
#4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4588:15)
#5 Element.rebuild (package:flutter/src/widgets/framework.dart:4311:5)
#6 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4566:5)
#7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4561:5)

Using flutter 2.8 and flutter_quill 2.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions