Skip to content

Commit e85cc20

Browse files
committed
docs: update package version and changelog
1 parent 941d559 commit e85cc20

3 files changed

Lines changed: 40 additions & 101 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,52 @@
1+
## [2.13.0] - 10/05/2025
2+
3+
**Changes**
4+
5+
- Enable slide animation for bottom and top for bottom and top centered toasts [PR#150](https://github.com/koukibadr/Motion-Toast/pull/150)
6+
- Refactor deprecated color opacity [PR#151](https://github.com/koukibadr/Motion-Toast/pull/151)
7+
18
## [2.12.1] - 17/03/2025
29

310
**Bug Fix**
11+
412
- Resolve compilation error with `wihValues` when setting opacity value [Issue #134](https://github.com/koukibadr/Motion-Toast/issues/134)
513

614
## [2.12.0] - 16/03/2025
715

816
**Bug Fix**
17+
918
- Update toast overlay height to support app usage when the toast is displayed [PR](https://github.com/koukibadr/Motion-Toast/pull/135) [Issue #134](https://github.com/koukibadr/Motion-Toast/issues/134)
1019

1120
**Enhancement**
21+
1222
- Update alignment, MotionToastPosition is refactored to use Alignment object [PR](https://github.com/koukibadr/Motion-Toast/pull/140) [Issue #126](https://github.com/koukibadr/Motion-Toast/issues/126)
1323
- Support for custom alignment values
1424

1525
**Changes**
26+
1627
- Refactor: AnimationTypes values are renamed [PR](https://github.com/koukibadr/Motion-Toast/pull/141)
1728

1829
## [2.11.0] - 07/08/2024
1930

2031
**Enhancement**
32+
2133
- Remove content padding effect on motion toast sidebar widget
2234
- Replace EdgeInsets type with EdgeInsetsGeometry type for wider options (Support of EdgeInsets and EdgeInsetsDirectional) [PR](https://github.com/koukibadr/Motion-Toast/pull/125)
2335
- Update custom motion toast rendering to support width and height constraints for large screens
2436

2537
**Changes**
38+
2639
- Update layoutDirection from LayoutDirection enum to TextDirection dart class
2740

2841
## [2.10.0] - 25/04/2024
2942

3043
**Enhancement**
44+
3145
- Replace `backgroundType` with `opacity` double attribute
3246
- Updated predefined themes colors, themes now have different primary and secondary colors
3347

3448
**Changes**
49+
3550
- Remove motion toast type parameter and replace it with direct theme initialization
3651
- Remove `iconType` parameter
3752
- `MotionToast.delete` marked as deprecated and will be removed in the next version
@@ -48,15 +63,16 @@
4863
## [2.8.0] - 21/01/2024
4964

5065
- Update motion toast display with Overlay instead of Navigator
51-
- Fix center content issue [Issue #113](https://github.com/koukibadr/Motion-Toast/issues/113)
66+
- Fix center content issue [Issue #113](https://github.com/koukibadr/Motion-Toast/issues/113)
5267

5368
## [2.7.9] - 27/09/2023
5469

5570
- Update package license to MIT license
5671

5772
## [2.7.10] - 10/12/2023
5873

59-
- Add `resources/arrays.dart` file export [Issue link](https://github.com/koukibadr/Motion-Toast/issues/112)
74+
- Add `resources/arrays.dart` file export [Issue link](https://github.com/koukibadr/Motion-Toast/issues/112)
75+
6076
## [2.7.8] - 29/06/2023
6177

6278
- Add dark mode support (special thanks to [kmalyshev](https://github.com/kmalyshev))
@@ -84,7 +100,6 @@
84100
- Add displayBorder attribute
85101
- Add displaySideBar boolean attribute
86102

87-
88103
## [2.5.4] - 13/11/2022
89104

90105
- Update package readme documentation

README.md

Lines changed: 21 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
# Motion Toast
22

3-
4-
53
<p align="center">
64
<img src="https://github.com/koukibadr/Motion-Toast/blob/main/MOTION%20TOAST.gif?raw=true" width="350"/>
75
<br>
86
<b>A well designed toast with animations for all platforms</b>
97
<b>Support material3 themes</b>
108
</p>
119

12-
1310
| ![success_mt.png](https://github.com/koukibadr/Motion-Toast/blob/main/example/success_mt.png?raw=true) | ![success_mt.png](https://github.com/koukibadr/Motion-Toast/blob/main/example/warning_mt.png?raw=true) |
14-
|--|--|
15-
| ![success_mt.png](https://github.com/koukibadr/Motion-Toast/blob/main/example/info_mt.png?raw=true) | ![success_mt.png](https://github.com/koukibadr/Motion-Toast/blob/main/example/error_mt.png?raw=true) |
16-
11+
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
12+
| ![success_mt.png](https://github.com/koukibadr/Motion-Toast/blob/main/example/info_mt.png?raw=true) | ![success_mt.png](https://github.com/koukibadr/Motion-Toast/blob/main/example/error_mt.png?raw=true) |
1713

1814
## Features
1915

20-
21-
2216
- Animated toasts with animated icons
2317
- Support dark and light mode
2418
- Built-in types (Success, Warning, Error, Info, Delete)
@@ -42,38 +36,28 @@
4236
- Customizable toast padding
4337
- Customizable border display
4438
- Customizable sidebar widget display
45-
4639

4740
## Getting Started
4841

49-
50-
5142
In order to add motion toast to your project add this line to your `pubspec.yaml` file
5243

5344
```yaml
5445
dependencies:
55-
motion_toast: ^2.12.1
46+
motion_toast: ^2.13.0
5647
```
5748

5849
Or you can reference the main repository directly by adding those lines
5950

60-
61-
6251
```yaml
6352
dependencies:
6453
motion_toast:
6554
git: https://github.com/koukibadr/Motion-Toast.git
6655

6756
```
6857

69-
70-
7158
## Attributes
7259

73-
74-
75-
76-
```dart
60+
````dart
7761
/// the text widget used for description message
7862
final Widget description;
7963
@@ -191,16 +175,11 @@ dependencies:
191175
/// motion toast background opacity
192176
/// by default opacity is set to .9
193177
final double opacity;
194-
```
195-
178+
````
196179

197180
## Implementation
198181

199-
200-
201-
- **Success Motion Toast**
202-
203-
182+
- **Success Motion Toast**
204183

205184
```dart
206185
@@ -211,11 +190,7 @@ MotionToast.success(
211190
212191
```
213192

214-
215-
216-
- **Warning Motion Toast**
217-
218-
193+
- **Warning Motion Toast**
219194

220195
```dart
221196
@@ -226,10 +201,7 @@ MotionToast.warning(
226201
227202
```
228203

229-
230-
231-
- **Error Motion Toast**
232-
204+
- **Error Motion Toast**
233205

234206
```dart
235207
MotionToast.error(
@@ -239,10 +211,7 @@ MotionToast.error(
239211
240212
```
241213

242-
243-
- **Info Motion Toast**
244-
245-
214+
- **Info Motion Toast**
246215

247216
```dart
248217
@@ -253,18 +222,11 @@ MotionToast.info(
253222
254223
```
255224

256-
257-
258-
259-
- **Custom Motion Toast**
260-
261-
225+
- **Custom Motion Toast**
262226

263227
To create your custom toast just use the default constructor,
264228

265-
**`icon` `description` and `color` are required**
266-
267-
229+
**`icon` `description` and `color` are required**
268230

269231
```dart
270232
@@ -279,17 +241,11 @@ MotionToast(
279241
280242
```
281243

282-
283-
284-
- **Right-Designed Motion Toast**
285-
286-
244+
- **Right-Designed Motion Toast**
287245

288246
To change the toast layout you need to use `layoutOrientation`,
289247

290-
**`icon` `description`** and **`color`** are required
291-
292-
248+
**`icon` `description`** and **`color`** are required
293249

294250
```dart
295251
MotionToast.success(
@@ -301,16 +257,10 @@ MotionToast.success(
301257
).show(context);
302258
```
303259

304-
305-
306-
- **Top-displayed Motion Toast**
307-
308-
260+
- **Top-displayed Motion Toast**
309261

310262
To change the display position of the motion toast use `position` attribute
311263

312-
313-
314264
```dart
315265
316266
MotionToast(
@@ -324,15 +274,11 @@ MotionToast(
324274
325275
```
326276

327-
328-
329-
- **Center-displayed Motion Toast**
330-
331-
277+
- **Center-displayed Motion Toast**
332278

333279
```dart
334280
335-
281+
336282
337283
MotionToast(
338284
icon: Icons.zoom_out,
@@ -344,10 +290,7 @@ MotionToast(
344290
345291
```
346292

347-
348-
- **Using onClose parameter** (display two successive toasts)
349-
350-
293+
- **Using onClose parameter** (display two successive toasts)
351294

352295
```dart
353296
MotionToast.success(
@@ -363,11 +306,7 @@ MotionToast.success(
363306
364307
```
365308

366-
367-
368-
- **Two-Colors Motion Toast**
369-
370-
309+
- **Two-Colors Motion Toast**
371310

372311
```dart
373312
@@ -384,10 +323,8 @@ MotionToast(
384323
).show(context);
385324
386325
```
387-
388-
389-
- **Transparent background motion toast**
390326

327+
- **Transparent background motion toast**
391328

392329
```dart
393330
@@ -404,11 +341,8 @@ MotionToast(
404341
).show(context);
405342
406343
```
407-
408344

409-
- **Motion toast without sidebar and with border**
410-
411-
345+
- **Motion toast without sidebar and with border**
412346

413347
```dart
414348
@@ -424,9 +358,7 @@ MotionToast(
424358
425359
```
426360

427-
- **Dismiss the toast from your UI screen**
428-
429-
361+
- **Dismiss the toast from your UI screen**
430362

431363
```dart
432364
@@ -443,26 +375,18 @@ toast.dismiss();
443375
444376
```
445377

446-
447378
## Contribution
448379

449-
450-
451380
Of course the project is open source, and you can contribute to it [repository link](https://github.com/koukibadr/Motion-Toast)
452381

453-
454-
455382
- If you **found a bug**, open an issue.
456383

457384
- If you **have a feature request**, open an issue.
458385

459386
- If you **want to contribute**, submit a pull request.
460-
461387

462388
## Contributors
463389

464-
465-
466390
<a href = "https://github.com/koukibadr/Motion-Toast/graphs/contributors">
467391

468392
<img src = "https://contrib.rocks/image?repo=koukibadr/Motion-Toast"/>

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: motion_toast
22
description: 'A beautiful designed toast with animations, contains multiple built in designs and let you design your toast'
3-
version: 2.12.1
3+
version: 2.13.0
44
homepage: 'https://github.com/koukibadr/Motion-Toast'
55
funding:
66
- 'https://www.buymeacoffee.com/koukibadr'

0 commit comments

Comments
 (0)