generated from altive/flutter_app_template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* abolish monorepo * flutter_widgets to awaitable_button
- Loading branch information
Showing
101 changed files
with
225 additions
and
741 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,48 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## 2022-11-28 | ||
|
||
### Changes | ||
|
||
--- | ||
|
||
Packages with breaking changes: | ||
|
||
- There are no breaking changes in this release. | ||
|
||
Packages with other changes: | ||
|
||
- [`awaitable_button` - `v1.3.0`](#awaitable_button---v130) | ||
|
||
--- | ||
|
||
#### `awaitable_button` - `v1.3.0` | ||
## 1.3.0 | ||
|
||
- **BUILD**: Bump minimum Dart version from 2.17.0 to 2.18.4 | ||
- **FEAT**: add indicatorStrokeWidth parameter. ([521a5853](https://github.com/altive/flutter_widgets/commit/521a5853a71b26561fb61b99f17f11814fa24c64)) | ||
|
||
|
||
## 2022-06-24 | ||
|
||
### Changes | ||
|
||
--- | ||
|
||
Packages with breaking changes: | ||
|
||
- There are no breaking changes in this release. | ||
|
||
Packages with other changes: | ||
|
||
- [`awaitable_button` - `v1.2.0`](#awaitable_button---v120) | ||
|
||
--- | ||
|
||
#### `awaitable_button` - `v1.2.0` | ||
|
||
- **FEAT**: add indicatorSize parameter to AwaitableButton. ([5bb188e8](https://github.com/altive/flutter_widgets/commit/5bb188e8d506383ebb2706eec7ac87638b10a71f)) | ||
|
||
|
||
## 2022-05-23 | ||
|
||
### Changes | ||
|
||
--- | ||
|
||
Packages with breaking changes: | ||
|
||
- There are no breaking changes in this release. | ||
|
||
Packages with other changes: | ||
|
||
- [`awaitable_button` - `v1.1.0`](#awaitable_button---v110) | ||
|
||
--- | ||
|
||
#### `awaitable_button` - `v1.1.0` | ||
|
||
- **FEAT**: add `AwaitableFilledButton` and `AwaitableFilledTonalButton` representing `FilledButton` and `FilledTonalButton` in Material 3. ([d94ac0f7](https://github.com/altive/flutter_widgets/commit/d94ac0f75047404b28c5f116c099badbc69c1fc1)) | ||
|
||
|
||
## 2022-05-13 | ||
|
||
### Changes | ||
- **FEAT**: add indicatorStrokeWidth parameter. ([521a5853](https://github.com/altive/awaitable_button/commit/521a5853a71b26561fb61b99f17f11814fa24c64)) | ||
|
||
--- | ||
## 1.2.0 | ||
|
||
Packages with breaking changes: | ||
- **FEAT**: add indicatorSize parameter to AwaitableButton. ([5bb188e8](https://github.com/altive/awaitable_button/commit/5bb188e8d506383ebb2706eec7ac87638b10a71f)) | ||
|
||
- There are no breaking changes in this release. | ||
## 1.1.0 | ||
|
||
Packages with other changes: | ||
- **FEAT**: add `AwaitableFilledButton` and `AwaitableFilledTonalButton` representing `FilledButton` and `FilledTonalButton` in Material 3. ([d94ac0f7](https://github.com/altive/awaitable_button/commit/d94ac0f75047404b28c5f116c099badbc69c1fc1)) | ||
|
||
- [`awaitable_button` - `v1.0.1`](#awaitable_button---v101) | ||
## 1.0.1 | ||
- Update example. | ||
|
||
--- | ||
## 1.0.0 | ||
|
||
#### `awaitable_button` - `v1.0.1` | ||
- **BUILD**: Bump minimum Dart version from 2.16.1 to 2.17.0 | ||
- **REFACTOR**: Refactoring with Flutter 3.0.0 | ||
- **REFACTOR**: Depends on the lint package "[altive_lints](https://pub.dev/packages/altive_lints)". | ||
|
||
## 0.4.1 | ||
|
||
## 2022-05-12 | ||
- **FIX**: add required to onPressed. | ||
- **CHORE**: add web demo link to README. | ||
|
||
### Changes | ||
## 0.4.0 | ||
- Changed Splash to be hidden during button processing. | ||
|
||
--- | ||
## 0.3.1 | ||
|
||
Packages with breaking changes: | ||
- Added `AwaitableOutlinedButton` . | ||
- Added `onError` to `AwaitableIconButton`. | ||
|
||
- There are no breaking changes in this release. | ||
## 0.2.0 | ||
|
||
Packages with other changes: | ||
- Added `onError` . | ||
|
||
- [`awaitable_button` - `v1.0.0`](#awaitable_button---v100) | ||
## 0.1.0 | ||
|
||
--- | ||
- Removed `AwaitableButton` . | ||
|
||
#### `awaitable_button` - `v1.0.0` | ||
- Added `AwaitableElevatedButton` and `AwaitableTextButton` . | ||
|
||
- **REFACTOR**: use altive_lints. ([75fa5f8e](https://github.com/altive/flutter_widgets/commit/75fa5f8e0546b823ca17038852d70bb68c49eb8f)) | ||
## 0.0.1 | ||
|
||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,97 @@ | ||
# Altive Flutter Widgets | ||
# Awaitable Button | ||
|
||
[![melos](https://img.shields.io/badge/maintained%20with-melos-f700ff.svg?style=flat-square)](https://github.com/invertase/melos) | ||
## Features | ||
|
||
## awaitable_buttion | ||
Button with indicator display during processing to prevent consecutive hits. | ||
|
||
`packages/awaitable_buttion` | ||
## Web demo for awaitable_button/example | ||
|
||
Button with indicator display during processing to prevent consecutive hits. | ||
You can try out the interactive buttons on the demo page below. | ||
|
||
https://altive.github.io/flutter_widgets/ | ||
|
||
## Getting started | ||
|
||
```pubspec.yaml | ||
awaitable_button: any | ||
``` | ||
|
||
## Usage | ||
```dart | ||
import 'package:awaitable_button/awaitable_button.dart'; | ||
``` | ||
|
||
This package includes the following buttons. | ||
Use them according to your style. | ||
|
||
- `AwaitableElevatedButton` | ||
- `AwaitableOutlinedButton` | ||
- `AwaitableTextButton` | ||
- `AwaitableFilledButton` | ||
- `AwaitableFilledTonalButton` | ||
|
||
```dart | ||
@override | ||
Widget build(BuildContext context) { | ||
return AwaitableElevatedButton<String>( | ||
// Required | ||
onPressed: () { | ||
// do something | ||
}, | ||
// Optional | ||
whenComplete: (value) { | ||
// do something | ||
}, | ||
// Optional | ||
onError: (exception, stackTrace) { | ||
// do something | ||
}, | ||
// Optional | ||
buttonStyle: ElevatedButton.styleFrom(), | ||
// Optional | ||
indicator: CircularProgressIndicator(), | ||
// Optional | ||
indicatorColor: Colors.green, | ||
// Optional | ||
indicatorSize: Size.square(24), | ||
// Optional | ||
executingChild: const Text('Executing...'), | ||
// Required | ||
child: const Text('Button'), | ||
); | ||
} | ||
``` | ||
|
||
## Development | ||
`AwaitableOutlinedButton`, `AwaitableTextButton`, `AwaitableFilledButton` and `AwaitableFilledTonalButton` is exactly the same as for `AwaitableElevatedButton`. | ||
|
||
Develop using the latest stable version of Flutter SDK. | ||
```dart | ||
@override | ||
Widget build(BuildContext context) { | ||
return AwaitableIconButton<String>( | ||
// Required | ||
onPressed: () { | ||
// do something | ||
}, | ||
// Optional | ||
whenComplete: (value) { | ||
// do something | ||
}, | ||
// Optional | ||
onError: (exception, stackTrace) { | ||
// do something | ||
}, | ||
// Optional | ||
iconSize: 24, | ||
// Optional | ||
indicator: CircularProgressIndicator(), | ||
// Optional | ||
indicatorColor: Colors.green, | ||
// Optional | ||
indicatorSize: Size.square(24), | ||
// Optional | ||
executingIcon: const Icon(Icons.timer_sharp), | ||
// Required | ||
icon: const Icon(Icons.timer), | ||
); | ||
} | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.