Adds 'li' style to the _buildBullet function (#34)
* added 'li' style to _buildBullet function
* updated pubspec and changelog
diff --git a/packages/flutter_markdown/CHANGELOG.md b/packages/flutter_markdown/CHANGELOG.md
index f4555ae..1880a6f 100644
--- a/packages/flutter_markdown/CHANGELOG.md
+++ b/packages/flutter_markdown/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.1.4
+
+* Add `li` style to bullets
+
## 0.1.3
* Add `path` and `http` as declared dependencies in `pubspec.yaml`
diff --git a/packages/flutter_markdown/lib/src/builder.dart b/packages/flutter_markdown/lib/src/builder.dart
index 0c0dffe..bc40497 100644
--- a/packages/flutter_markdown/lib/src/builder.dart
+++ b/packages/flutter_markdown/lib/src/builder.dart
@@ -277,12 +277,12 @@
Widget _buildBullet(String listTag) {
if (listTag == 'ul')
- return const Text('•', textAlign: TextAlign.center);
+ return new Text('•', textAlign: TextAlign.center, style: styleSheet.styles['li']);
final int index = _blocks.last.nextListIndex;
return new Padding(
padding: const EdgeInsets.only(right: 5.0),
- child: new Text('${index + 1}.', textAlign: TextAlign.right),
+ child: new Text('${index + 1}.', textAlign: TextAlign.right, style: styleSheet.styles['li']),
);
}
diff --git a/packages/flutter_markdown/pubspec.yaml b/packages/flutter_markdown/pubspec.yaml
index 93b58f9..ec5c8cd 100644
--- a/packages/flutter_markdown/pubspec.yaml
+++ b/packages/flutter_markdown/pubspec.yaml
@@ -2,7 +2,7 @@
author: Flutter Authors <flutter-dev@googlegroups.com>
description: A markdown renderer for Flutter.
homepage: https://github.com/flutter/flutter_markdown
-version: 0.1.3
+version: 0.1.4
dependencies:
flutter: