Skip to content

Commit

Permalink
alignment changed to align
Browse files Browse the repository at this point in the history
  • Loading branch information
iampawan committed Feb 10, 2021
1 parent 74d7f28 commit f8851c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/flutter/rich_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class VxRichText extends VxWidgetBuilder<AutoSizeText>
}

// Give custom text alignment
VxRichText alignment(TextAlign align) => this.._textAlign = align;
VxRichText align(TextAlign align) => this.._textAlign = align;

/// How the text should be aligned horizontally.
///
Expand Down
2 changes: 1 addition & 1 deletion lib/src/flutter/text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class VxTextBuilder extends VxWidgetBuilder<Widget>
}

// Give custom text alignment
VxTextBuilder alignment(TextAlign align) => this.._textAlign = align;
VxTextBuilder align(TextAlign align) => this.._textAlign = align;

/// How the text should be aligned horizontally.
///
Expand Down

0 comments on commit f8851c8

Please sign in to comment.