Skip to content

Commit

Permalink
pub release
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonweze committed Sep 22, 2023
1 parent 61e3c2b commit 86483be
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 74 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/publish-package-dev.yml

This file was deleted.

24 changes: 7 additions & 17 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,12 @@ name: Publish to Pub.dev

on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'


jobs:
publishing:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2 # required!

- name: '>> Dart package <<'
uses: k-paxian/dart-package-publisher@master
with:
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
skipTests: true
format: true
flutter: true
publish:
permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
74 changes: 43 additions & 31 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,65 @@
##[1.2.1-dev-2]
* Updated ```RTUtils.emailPattern``` to use RFC 5322 Standard Email Regex
* disposed ```suggestionController``` correctly
##[1.2.2]

- Updated `RTUtils.emailPattern` and `RTUtils.urlPattern` to use RFC 5322 Standard Regex
- disposed `suggestionController` correctly
- added `ItalicsParser` and `viewMoreLessStyle`
- Fixed (#31)[https://github.com/nelsonweze/rich_text_view/issues/31] and (#32)[https://github.com/nelsonweze/rich_text_view/issues/32]
- Added `borderColor` property to `SuggestionController`

##[1.2.1-dev-1]
* Fixed (#31)[https://github.com/nelsonweze/rich_text_view/issues/31] and (#32)[https://github.com/nelsonweze/rich_text_view/issues/32]
* Added ```borderColor``` property to ```SuggestionController```

- Fixed (#31)[https://github.com/nelsonweze/rich_text_view/issues/31] and (#32)[https://github.com/nelsonweze/rich_text_view/issues/32]
- Added `borderColor` property to `SuggestionController`

## [1.2.0]
* BREAKING: Removed ```ParsedType```, renamed ```MatchText``` to ```ParserType```
* ```RichTextView.supportedTypes``` now takes list of ```ParserType``` eg ```MentionParser```, ```HashTagParser```, ```UrlParser``` and so on. You can extend ```ParserType``` for a custom parser
* All onTap callbacks in ```RichTextView``` have been moved to thier individual parser class
* ```ParserType.onTap``` returns ```Matched``` which also contains the start and end indexes
* Check example codes for more

- BREAKING: Removed `ParsedType`, renamed `MatchText` to `ParserType`
- `RichTextView.supportedTypes` now takes list of `ParserType` eg `MentionParser`, `HashTagParser`, `UrlParser` and so on. You can extend `ParserType` for a custom parser
- All onTap callbacks in `RichTextView` have been moved to thier individual parser class
- `ParserType.onTap` returns `Matched` which also contains the start and end indexes
- Check example codes for more

## [1.1.0]
* stable release
* minor fixes

- stable release
- minor fixes

## [1.1.0-dev-1]
* BREAKING: Added SuggestionController which now takes more customizations
* Removed dependency on Bloc package,
* Added id param to ```Mention```

- BREAKING: Added SuggestionController which now takes more customizations
- Removed dependency on Bloc package,
- Added id param to `Mention`

## [1.0.0]
* Stable release

- Stable release

## [1.0.0-dev-2]

* BREAKING: Separated RichTextEditor from RichTextView to avoid confusion with parameters.
* Added more text field parameters
* Added support to toggle between view more and view less
- BREAKING: Separated RichTextEditor from RichTextView to avoid confusion with parameters.
- Added more text field parameters
- Added support to toggle between view more and view less

## [1.0.0-dev-1]

* BREAKING: ```Suggestion``` renamed to ```Mention```
```onSearchPeople``` renamed to ```onSearchMention```
```onSuggestionSelected``` renamed to ```onMentionSelected```
```showMoreText``` renamed to ```truncate```
* Added callbacks for when a mention or hashtag is selected during search
* Added option to use custom widgets for suggestion items
- BREAKING: `Suggestion` renamed to `Mention`
`onSearchPeople` renamed to `onSearchMention`
`onSuggestionSelected` renamed to `onMentionSelected`
`showMoreText` renamed to `truncate`
- Added callbacks for when a mention or hashtag is selected during search
- Added option to use custom widgets for suggestion items

## [0.0.3]
* Fix bold style issue
* Fix issue when selectable is set to false

- Fix bold style issue
- Fix issue when selectable is set to false

## [0.0.2]

* To use as a TextField, there's now RichTextView.editor
* Added screenshot to README.md
* fixed some bugs and improved example codes
- To use as a TextField, there's now RichTextView.editor
- Added screenshot to README.md
- fixed some bugs and improved example codes

## [0.0.1]

* Initial release to pub.dev
- Initial release to pub.dev
7 changes: 5 additions & 2 deletions lib/src/text_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class RichTextView extends StatefulWidget {
/// the view more text if `truncate` is true
final String viewMoreText;

/// the view more and view less text's style
final TextStyle? viewMoreLessStyle;

/// if included, will show a view less text
final String? viewLessText;
final List<ParserType> supportedTypes;
Expand Down Expand Up @@ -59,6 +62,7 @@ class RichTextView extends StatefulWidget {
this.onMore,
this.viewMoreText = 'more',
this.viewLessText,
this.viewMoreLessStyle,
this.selectable = false,
}) : super(key: key);

Expand All @@ -76,7 +80,6 @@ class _RichTextViewState extends State<RichTextView> {
super.initState();
_expanded = !widget.truncate;
_maxLines = widget.truncate ? (widget.maxLines ?? 2) : widget.maxLines;

linkStyle = widget.linkStyle;
}

Expand All @@ -97,7 +100,7 @@ class _RichTextViewState extends State<RichTextView> {
});
}),
],
style: linkStyle,
style: widget.viewMoreLessStyle ?? linkStyle,
);

List<InlineSpan> parseText(String txt) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: rich_text_view
description: A simple yet powerful rich text view that supports mention, hashtag, email, url and see more.
version: 1.2.1-dev-2
version: 1.2.2
homepage: https://github.com/nelsonweze/rich_text_view

environment:
Expand Down

0 comments on commit 86483be

Please sign in to comment.