Skip to content

Commit

Permalink
🔖 3.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Aug 21, 2023
1 parent 9461dbc commit bbcf515
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log

## 3.3.2

- Fix position offset do not work when `movingOnWindowChange` is false. (#100)

## 3.3.1

- Replace `context.debugDoingBuild` flag with `SchedulerBinding.instance.schedulerPhase`. (#97)
Expand Down
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ You can completely customize the style of toast.

## Screenshot

| Default | Custom | GIF |
| ------- | ------ | --- |
| Default | Custom | GIF |
|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
| ![pic](https://raw.githubusercontent.com/CccFans/images/master/img/20181207161700.png) | ![pic](https://raw.githubusercontent.com/CccFans/images/master/img/20181207161742.png) | ![pic](https://raw.githubusercontent.com/CaiJingLong/some_asset/master/ktoast2.gif) |

## Versions
Expand All @@ -43,11 +43,8 @@ And you can completely customize the style of toast, because now you can use `sh

### 1. Add library to your pubspec.yaml

latest version: [![pub package](https://img.shields.io/pub/v/oktoast.svg)](https://pub.dartlang.org/packages/oktoast)

```yaml
dependencies:
oktoast: ^latest_version
```shell
flutter pub add oktoast
```

### 2. Import library in dart file
Expand Down Expand Up @@ -84,7 +81,6 @@ MaterialApp(
showToast('content');
// position and second have default value, is optional
showToastWidget(Text('hello oktoast'));
```

Expand All @@ -102,7 +98,7 @@ There are two reasons why you need to wrap MaterialApp
OKToast have default style, and you also can custom style or other behavior.

| name | type | need | desc |
| :------------------: | :---------------------: | :------: | :-----------------------------------------------------------: |
|:--------------------:|:-----------------------:|:--------:|:-------------------------------------------------------------:|
| child | Widget | required | Usually Material App |
| textStyle | TextStyle | optional | |
| radius | double | optional | |
Expand All @@ -126,7 +122,7 @@ Display text on toast.
Description of params see `OKToast`.

| name | type | need | desc |
| :---------------: | :---------------------: | :------: | :------------: |
|:-----------------:|:-----------------------:|:--------:|:--------------:|
| msg | String | required | Text of toast. |
| context | BuildContext | optional | |
| duration | Duration | optional | |
Expand All @@ -150,7 +146,7 @@ Display custom widgets on toast
Description of params see `showToast`.

| name | type | need | desc |
| :---------------: | :---------------------: | :------: | :-----------------------------: |
|:-----------------:|:-----------------------:|:--------:|:-------------------------------:|
| widget | Widget | required | The widget you want to display. |
| context | BuildContext | optional | |
| duration | Duration | optional | |
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
path: ../

dev_dependencies:
flutter_lints: ^2.0.1
flutter_lints: any

flutter:
uses-material-design: true
7 changes: 3 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: oktoast
description: A pure flutter toast library, support custom style/widget, easy achieve the same effect with native toasts.
email: cjl_spy@163.com
homepage: https://github.com/OpenFlutter/flutter_oktoast
version: 3.3.1
repository: https://github.com/OpenFlutter/flutter_oktoast
version: 3.3.2

environment:
sdk: '>=2.17.0 <3.0.0'
Expand All @@ -13,6 +12,6 @@ dependencies:
sdk: flutter

dev_dependencies:
flutter_lints: ^2.0.1
flutter_lints: any
flutter_test:
sdk: flutter

0 comments on commit bbcf515

Please sign in to comment.