diff --git a/CHANGELOG.md b/CHANGELOG.md index 8488e208..127c2717 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# [6.1.1] +* Fix order list numbering. + # [6.1.0] * Add keyboard shortcuts for editor actions. diff --git a/lib/src/widgets/style_widgets/number_point.dart b/lib/src/widgets/style_widgets/number_point.dart index a47c1ef1..836dbed0 100644 --- a/lib/src/widgets/style_widgets/number_point.dart +++ b/lib/src/widgets/style_widgets/number_point.dart @@ -82,11 +82,14 @@ class QuillNumberPoint extends StatelessWidget { final builder = StringBuffer(); for (var a = 0; a < arabianRomanNumbers.length; a++) { - final times = (num / arabianRomanNumbers[a]).truncate(); // equals 1 only when arabianRomanNumbers[a] = num + final times = (num / arabianRomanNumbers[a]) + .truncate(); // equals 1 only when arabianRomanNumbers[a] = num // executes n times where n is the number of times you have to add // the current roman number value to reach current num. builder.write(romanNumbers[a] * times); - num -= times * arabianRomanNumbers[a]; // subtract previous roman number value from num + num -= times * + arabianRomanNumbers[ + a]; // subtract previous roman number value from num } return builder.toString().toLowerCase(); diff --git a/pubspec.yaml b/pubspec.yaml index 6188f44d..44d81e5d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) -version: 6.1.0 +version: 6.1.1 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill