From 486b823d35df31b5c9856dbb2c9ccf757ad087a6 Mon Sep 17 00:00:00 2001 From: singerdmx Date: Tue, 5 Jan 2021 00:59:01 -0800 Subject: [PATCH] Support text alignment --- CHANGELOG.md | 5 ++++- lib/widgets/text_line.dart | 1 + pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2808878..f619d325 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,4 +39,7 @@ * Handle cursor position change when undo/redo. ## [0.1.4] -* Handle url with trailing spaces. \ No newline at end of file +* Handle url with trailing spaces. + +## [0.1.5] +* Support text alignment. \ No newline at end of file diff --git a/lib/widgets/text_line.dart b/lib/widgets/text_line.dart index fec497e0..b0ceb182 100644 --- a/lib/widgets/text_line.dart +++ b/lib/widgets/text_line.dart @@ -45,6 +45,7 @@ class TextLine extends StatelessWidget { final textAlign = _getTextAlign(); RichText child = RichText( text: _buildTextSpan(context), + textAlign: textAlign, textDirection: textDirection, strutStyle: strutStyle, textScaleFactor: MediaQuery.textScaleFactorOf(context), diff --git a/pubspec.yaml b/pubspec.yaml index 91641f8d..1dc3fa52 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: One client and affiliated collaborator of Flutter Quill is Bullet Journal App. -version: 0.1.4 +version: 0.1.5 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill.git