Skip to content

Commit

Permalink
abolish monorepo (#6)
Browse files Browse the repository at this point in the history
* abolish monorepo

* flutter_widgets to awaitable_button
  • Loading branch information
riscait authored Oct 12, 2023
1 parent 0b2fddb commit 005a59d
Show file tree
Hide file tree
Showing 101 changed files with 225 additions and 741 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"name": "awaitable_button example",
"request": "launch",
"type": "dart",
"program": "packages/awaitable_button/example/lib/main.dart",
"cwd": "example",
"program": "lib/main.dart",
"flutterMode": "debug",
"args": []
},
Expand Down
114 changes: 27 additions & 87 deletions CHANGELOG.md
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
13 changes: 0 additions & 13 deletions Makefile

This file was deleted.

98 changes: 91 additions & 7 deletions README.md
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.
1 change: 0 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ coverage:
default:
target: auto
threshold: 0%
patch: no # See: https://docs.codecov.io/docs/commit-status#section-patch-status
changes: false

parsers:
Expand Down
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.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class _MyHomePageState extends State<MyHomePage> {
onPressed: () async {
await launchUrl(
Uri.parse(
'https://github.com/altive/flutter_widgets/tree/main/packages/awaitable_button',
'https://github.com/altive/awaitable_button/tree/main/packages/awaitable_button',
),
);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
url: "https://pub.dev"
source: hosted
version: "1.17.1"
version: "1.17.2"
fake_async:
dependency: transitive
description:
Expand All @@ -79,30 +79,22 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
js:
dependency: transitive
description:
name: js
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev"
source: hosted
version: "0.6.7"
matcher:
dependency: transitive
description:
name: matcher
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
url: "https://pub.dev"
source: hosted
version: "0.12.15"
version: "0.12.16"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
url: "https://pub.dev"
source: hosted
version: "0.2.0"
version: "0.5.0"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -136,10 +128,10 @@ packages:
dependency: transitive
description:
name: source_span
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -176,10 +168,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
version: "0.6.0"
url_launcher:
dependency: "direct main"
description:
Expand Down Expand Up @@ -252,6 +244,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
web:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
sdks:
dart: ">=3.0.0 <4.0.0"
dart: ">=3.1.0-185.0.dev <4.0.0"
flutter: ">=3.3.0"
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.
Loading

0 comments on commit 005a59d

Please sign in to comment.