Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
emreesen27 authored Jan 22, 2023
2 parents 47031a3 + 9585a70 commit bfb9b7a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
name: Dart/Flutter Package Analyzer
name: pub score
on:
pull_request:
branches:
- master
- develop

- master

jobs:
package-analysis:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
- uses: actions/checkout@v2
- uses: axel-op/dart-package-analyzer@v3
# set an id for the current step
id: analysis
with:
channel: stable

- name: Install dependencies
run: flutter pub get

- name: Format code
run: flutter format --set-exit-if-changed .
githubToken: ${{ secrets.GITHUB_TOKEN }}

- name: Analyze code
run: flutter analyze --fatal-infos .
# You can then use this id to retrieve the outputs in the next steps.
# The following step shows how to exit the workflow with an error if the total score in percentage is below 50:
- name: check scores
env:
# NB: "analysis" is the id set above. Replace it with the one you used if different.
TOTAL: ${{ steps.analysis.outputs.total }}
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
run: |
PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
if (( $PERCENTAGE < 100 ))
then
echo Score too low!
exit 1
fi
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## [1.1.2] - 22-01-2023
## [1.1.2] - 22.01.2023
* Auto hidden added.
* Readme edited.

## [1.1.1] - 21.01.2023
* Readme Edited.
* Readme edited.

## [1.1.0] - 20.05.2022
## [1.1.0] - 21.01.2023
* Bug Fix.
* Cancel option added.
* Dialog status callback added.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import 'package:sn_progress_dialog/sn_progress_dialog.dart';

* [You can review the sample codes for detailed usage.](https://github.com/emreesen27/Flutter-Progress-Dialog/tree/master/example)


Create Progress Dialog

```dart
Expand Down Expand Up @@ -110,3 +111,4 @@ await dio.download(
},
);
```
#### If you like the library, you can support the [github](https://github.com/emreesen27/Flutter-Progress-Dialog) repo by giving a star.

0 comments on commit bfb9b7a

Please sign in to comment.