From ae3f60445b03cc19077301ed74a7c09bf5564d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20Ho=C3=A0ng=20Sang?= Date: Fri, 25 Aug 2023 14:40:45 +0700 Subject: [PATCH] Miss case --- lib/src/widgets/controller.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/widgets/controller.dart b/lib/src/widgets/controller.dart index 0780b9ea..16e919e8 100644 --- a/lib/src/widgets/controller.dart +++ b/lib/src/widgets/controller.dart @@ -152,7 +152,9 @@ class QuillController extends ChangeNotifier { } else if (indent.value == 1 && !isIncrease) { formatAttribute = Attribute.clone(Attribute.indentL1, null); } else if (isIncrease) { - formatAttribute = Attribute.getIndentLevel(indent.value + 1); + if (indent.value < 5) { + formatAttribute = Attribute.getIndentLevel(indent.value + 1); + } } else { formatAttribute = Attribute.getIndentLevel(indent.value - 1); }