1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-1523 Editor | Fix | There is no empty space at the bottom of the page filled with no content - no possibility to create a new text block (#237)

This commit is contained in:
Evgenii Kozlov 2023-07-24 14:15:48 +02:00 committed by uburoiubu
parent 9e5c06d5a8
commit 197741d26f
No known key found for this signature in database
GPG key ID: C8FB80E0A595FBB6
6 changed files with 111 additions and 13 deletions

View file

@ -175,6 +175,21 @@ fun StubQuote(
fields = Block.Fields.empty()
)
fun StubCodeSnippet(
text: String = MockDataFactory.randomString(),
children: List<Id> = emptyList(),
marks: List<Block.Content.Text.Mark> = emptyList()
): Block = Block(
id = MockDataFactory.randomUuid(),
content = StubTextContent(
text = text,
style = Block.Content.Text.Style.CODE_SNIPPET,
marks = marks
),
children = children,
fields = Block.Fields.empty()
)
fun StubCallout(
text: String = MockDataFactory.randomString(),
children: List<Id> = emptyList(),