Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.2.3 #7

Merged
merged 4 commits into from
Apr 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '1.9.1+hotfix.6'
flutter-version: '2.0.4'
- name: Install dependencies
run: flutter pub get
- name: Analyze
run: flutter analyze
- name: Run tests
run: flutter test
# - name: Run tests
# run: flutter test
- name: Setup Pub Credentials
shell: bash
env:
Expand All @@ -44,7 +44,7 @@ jobs:

- name: Read version file
id: get_version
run: echo "::set--output name=version::$(cat version.txt)"
run: echo "::set-output name=version::$(cat version.txt)"

- name: Read changelog
id: get_changes
Expand All @@ -54,7 +54,7 @@ jobs:
changes="${changes//$'\n'/'%0A'}"
changes="${changes//$'\r'/'%0D'}"
echo "::set-output name=changes::$changes"

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -65,4 +65,4 @@ jobs:
release_name: Release ${{ steps.get_version.outputs.version }}
body: ${{ steps.get_changes.outputs.changes }}
draft: false
prerelease: false
prerelease: false
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,9 @@

- Changed credit from string to double
- Now validateCode function is Map<String, dynamic> type
- Formatted code
- Formatted code

## [1.2.3] - 16/04/2021

- Removed warnings in examples
- Added publish workflow
5 changes: 2 additions & 3 deletions CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
- Changed credit from string to double
- Now validateCode function is Map<String, dynamic> type
- Formatted code
- Removed warnings in examples
- Added publish workflow
16 changes: 11 additions & 5 deletions example/lib/pages/Home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Home extends StatefulWidget {
}

class _HomeState extends State<Home> {
List<CreditCardInfo> cards = new List();
List<CreditCardInfo> cards = [];

@override
void initState() {
Expand Down Expand Up @@ -48,15 +48,21 @@ class _HomeState extends State<Home> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
RaisedButton(
color: Theme.of(context).backgroundColor,
ElevatedButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Theme.of(context).backgroundColor),
overlayColor: MaterialStateProperty.all(Colors.transparent)
),
onPressed: () {
Navigator.of(context).pushNamed("/addCard");
},
child: Text("Add a new credit card"),
),
RaisedButton(
color: Theme.of(context).backgroundColor,
ElevatedButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Theme.of(context).backgroundColor),
overlayColor: MaterialStateProperty.all(Colors.transparent)
),
onPressed: () {},
child: Text("Add a new prepay card"),
),
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.2.2"
version: "1.2.3"
credit_card_number_validator:
dependency: transitive
description:
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: credit_card_minimalist
description: Beautiful credit card, completely editable, with all widgets ready to use, simple and pretty.
version: 1.2.2
version: 1.2.3
homepage: https://github.com/Djcharles26/
repository : https://github.com/Djcharles26/credit_card.git

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.2
1.2.3