Skip to content

Commit b64235c

Browse files
authored
Fixed a space input error on iPad. (singerdmx#1376)
1 parent 16ba7cb commit b64235c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/models/documents/nodes/container.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abstract class Container<T extends Node?> extends Node {
2525
int get childCount => _children.length;
2626

2727
/// Returns the first child [Node].
28-
Node get first => _children.first;
28+
Node? get first => isEmpty ? null : _children.first;
2929

3030
/// Returns the last child [Node].
3131
Node get last => _children.last;

0 commit comments

Comments
 (0)