Update logic

pull/1372/head
Phạm Hoàng Sang 2 years ago
parent 41076a9b2a
commit 0efe0eabb4
  1. 11
      lib/src/widgets/controller.dart

@ -122,14 +122,13 @@ class QuillController extends ChangeNotifier {
formatSelection(Attribute.clone(Attribute.indentL1, null));
return;
}
if (isIncrease && indent.value < 5) {
formatSelection(Attribute.getIndentLevel(indent.value + 1));
return;
}
if (indent.value > 0) {
formatSelection(Attribute.getIndentLevel(indent.value - 1));
if (isIncrease) {
if (indent.value < 5) {
formatSelection(Attribute.getIndentLevel(indent.value + 1));
}
return;
}
formatSelection(Attribute.getIndentLevel(indent.value - 1));
}
void _indentSelectionEachLine(bool isIncrease) {

Loading…
Cancel
Save