From cb093b66df8369a2c0a231717c1ad96db8492ce7 Mon Sep 17 00:00:00 2001
From: singerdmx <singerdmx@gmail.com>
Date: Tue, 22 Dec 2020 19:21:24 -0800
Subject: [PATCH] Add sample data for list with indent

---
 app/assets/sample_data.json | 88 +++++++++++++++++++++++++++++++++++++
 lib/widgets/text_block.dart |  4 +-
 2 files changed, 90 insertions(+), 2 deletions(-)

diff --git a/app/assets/sample_data.json b/app/assets/sample_data.json
index 687e834d..4c9cef4a 100644
--- a/app/assets/sample_data.json
+++ b/app/assets/sample_data.json
@@ -226,5 +226,93 @@
          "align":"justify"
       },
       "insert":"\n"
+   },
+   {
+      "insert":"Have trouble finding things? "
+   },
+   {
+      "attributes":{
+         "list":"ordered"
+      },
+      "insert":"\n"
+   },
+   {
+      "insert":"Just type in the search bar"
+   },
+   {
+      "attributes":{
+         "indent":1,
+         "list":"ordered"
+      },
+      "insert":"\n"
+   },
+   {
+      "insert":"and easily find contents"
+   },
+   {
+      "attributes":{
+         "indent":2,
+         "list":"ordered"
+      },
+      "insert":"\n"
+   },
+   {
+      "insert":"across projects or folders."
+   },
+   {
+      "attributes":{
+         "indent":2,
+         "list":"ordered"
+      },
+      "insert":"\n"
+   },
+   {
+      "insert":"It matches text in your note or task."
+   },
+   {
+      "attributes":{
+         "indent":1,
+         "list":"ordered"
+      },
+      "insert":"\n"
+   },
+   {
+      "insert":"Enable reminders so that you will get notified by"
+   },
+   {
+      "attributes":{
+         "list":"ordered"
+      },
+      "insert":"\n"
+   },
+   {
+      "insert":"email"
+   },
+   {
+      "attributes":{
+         "indent":1,
+         "list":"ordered"
+      },
+      "insert":"\n"
+   },
+   {
+      "insert":"message on your phone"
+   },
+   {
+      "attributes":{
+         "indent":1,
+         "list":"ordered"
+      },
+      "insert":"\n"
+   },
+   {
+      "insert":"popup on the web site"
+   },
+   {
+      "attributes":{
+         "indent":1,
+         "list":"ordered"
+      },
+      "insert":"\n"
    }
 ]
\ No newline at end of file
diff --git a/lib/widgets/text_block.dart b/lib/widgets/text_block.dart
index e1a6143f..42c2b3d6 100644
--- a/lib/widgets/text_block.dart
+++ b/lib/widgets/text_block.dart
@@ -174,12 +174,12 @@ class EditableTextBlock extends StatelessWidget {
       Tuple2 lineSpacing;
       if (attrs.containsKey(Attribute.blockQuote.key)) {
         lineSpacing = defaultStyles.quote.lineSpacing;
+      } else if (attrs.containsKey(Attribute.indent.key)) {
+        lineSpacing = defaultStyles.indent.lineSpacing;
       } else if (attrs.containsKey(Attribute.list.key)) {
         lineSpacing = defaultStyles.lists.lineSpacing;
       } else if (attrs.containsKey(Attribute.codeBlock.key)) {
         lineSpacing = defaultStyles.code.lineSpacing;
-      } else if (attrs.containsKey(Attribute.indent.key)) {
-        lineSpacing = defaultStyles.indent.lineSpacing;
       } else if (attrs.containsKey(Attribute.align.key)) {
         lineSpacing = defaultStyles.align.lineSpacing;
       }