Skip to content
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
39 changes: 26 additions & 13 deletions .github/workflows/dart.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,44 @@
name: Build
name: CI

on:
push:
branches: [main]
pull_request:
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"

jobs:
setup:
build:
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
matrix:
channel: [stable, beta]
fail-fast: false
steps:
- name: "Git Checkout"
uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: "Install Flutter"
uses: subosito/flutter-action@v2
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.channel }}

- name: Install dependencies
run: flutter pub get

- name: Check format
run: flutter format --set-exit-if-changed .
- name: Check formatting
run: dart format --line-length 100 --set-exit-if-changed .

- name: Analyze
run: flutter analyze

- name: Run tests
run: flutter test
- name: Test with coverage
run: flutter test --coverage

- name: Upload coverage
if: matrix.channel == 'stable'
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/lcov.info

- name: Validate publish (dry run)
if: matrix.channel == 'stable'
run: flutter pub publish --dry-run
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,6 @@ build/
pubspec.lock
**/pubspec.lock
example/pubspec.lock

# Coverage output
coverage/
4 changes: 2 additions & 2 deletions .metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: 63062a64432cce03315d6b5196fda7912866eb37
channel: dev
revision: stable
channel: stable

project_type: package
5 changes: 3 additions & 2 deletions .pubignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea/
.vscode/
screenshots/
build/
build/
coverage/
tool/
166 changes: 3 additions & 163 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,164 +1,4 @@
# [3.0.0+1] - 2022-02-13
# 1.0.0

- Fix `Undefined name 'optionalTypeArgs'.` Also adds back the hard dep on freezed_annotation.

## [3.0.0] - 2022-02-13

- Added notification functionality. The error variant now passes through the error and stacktrace which would be needed for a notification to be useful. This is a breaking change as the error widget now takes an error and stacktrace as arguments.

## [2.3.0+3] - 2023-02-13

- Not pushed

## [2.3.0+2] - 2022-05-24

- Added back freezed_annotation as a hard dep.

## [2.3.0+1] - 2022-05-24

- Fixed onError never being called when an error occurs - Credit @jonjomckay

## [2.3.0] - 2022-05-24

- Removed freezed dependency and added new callbacks @mergehez
- Upgrade to freezed 2 (excluding user now) @quantosapplications @esenmx

## [2.2.0+1] - 2022-01-28

Ignore .vscode, update versions and re-export button state. Credit @esenmx

## [2.2.0] - 2022-01-07

Got rid of hook version as it was complicating a simple package and likely discouraging possible contributors.

## [2.1.4] - 2021-09-28

Fix manual button state changes. Credit to @iliser

## [2.1.3+9] - 2021-09-28

Upgraded deps

## [2.1.3+8] - 2021-09-28

Upgraded deps

## [2.1.3+7] - 2021-09-08

Fixed github actions

## [2.1.3+6] - 2021-08-31

Trying to fix pub stuff

## [2.1.3+5] - 2021-08-27

Trying to fix pub stuff

## [2.1.3+4] - 2021-08-27

Fix home page

## [2.1.3+3] - 2021-08-12

Have proper types exported

## [2.1.3+2] - 2021-08-12

Fix possibility of nested async button builders conflicting with each other due to matching keyed subtrees. In order to avoid this situation, the parent key of the async_button_builder is used in the creation of sub widgets.

## [2.1.3+1] - 2021-06-25

Was not using proper sucessDuration when setting timeouts (regression)

## [2.1.3] - 2021-06-18

Tests and builds against stable. flutter_lints now used in place of pedantic

## [2.1.2+1] - 2021-06-12

Fixes analysis errors so I stop getting annoying emails

## [2.1.2] - 2021-05-24

Errors from onpressed will throw with orignal call stack

## [2.1.1+2] - 2021-04-14

Makes onpressed nullable similar to other button's behaviour

## [2.1.1+1] - 2021-04-14

Add documentation on how to handle timeouts

## [2.1.1] - 2021-04-14

ValueKeys are now no longer required in order to differentiate children

## [2.1.0] - 2021-02-12

Remove null-safety prefix as it's now in stable

## [2.0.9-nullsafety.0] - 2021-02-12

Trying to bump version again to go over stable

## [2.0.8-nullsafety.0] - 2021-02-12

Trying to bump version again to go over stable

## [2.0.7-nullsafety.8] - 2021-02-12

Republish so current nullsafe becomes main. My mistake

## [2.0.2-nullsafety.7] - 2021-02-12

Added a typedef in place of inline type on function. Added doc to `builder` field

## [2.0.2-nullsafety.6] - 2021-02-09

Renamed Union classes to match that of factory constructor name (Should not be breaking).

## [2.0.2-nullsafety.5] - 2021-02-01

Removed example integration test

## [2.0.2-nullsafety.4] - 2021-01-26

Adds tests and test coverage. Adds on dispose to cancel timer.

## [2.0.2-nullsafety.3] - 2021-01-25

Removes dangling controller and cleans up main code up a bit

## [2.0.2-nullsafety.2] - 2021-01-25

Fixes wrong image path

## [2.0.1-nullsafety.2] - 2021-01-25

Renames fields to better match standards of other buttons.

## [2.0.0-dev.1] - 2021-01-25

Breaking. Replaces the fourth argument with a sealed union that better allows for directly managing states, removes unnecessary arguments such as padding, adds transition builders for custom transitions. Currently still includes `AnimatedSize`.

## [1.0.0-nullsafety.0] - 2021-01-12

Breaking. Adds a fourth argument of loading to the builder. This removes the value notifier that was difficult or confusing to manage in actual usage in my use cases. The argument isLoading is now a `bool`. This also adds a `disabled` field in order to set that on construction.

## [0.1.0-nullsafety.0] - 2021-01-12

Replaces the bool type of isLoading for a `ValueNotifier<bool>`.

## [0.0.1-nullsafety.2] - 2021-01-12

Adds analysis options and removes unnecessary typedef

## [0.0.1-nullsafety.1] - 2021-01-12

Adds docs to parameters and removes use of unnecessary undescore internal variables.

## [0.0.1-nullsafety.0] - 2021-01-11

Holds basic builder AsyncButtonBuilder. No tests yet. `NNBD` is supported
Initial release. Renamed from `async_button_builder` to `material_async_button`
with a redesigned, theme-aware API.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Rex Magana
Copyright (c) 2026 Mehmet Esen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading
Loading