Skip to content

Commit 8cd9585

Browse files
committed
feat: remove deprecated position attribute
1 parent e85cc20 commit 8cd9585

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

lib/motion_toast.dart

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ class MotionToast extends StatefulWidget {
4646
),
4747
this.animationCurve = Curves.ease,
4848
this.toastAlignment = Alignment.bottomCenter,
49-
@Deprecated('Use toastAlignment instead')
50-
this.position = MotionToastPosition.bottom,
5149
this.borderRadius = 20,
5250
this.onClose,
5351
this.dismissable = true,
@@ -88,8 +86,6 @@ class MotionToast extends StatefulWidget {
8886
),
8987
this.animationCurve = Curves.ease,
9088
this.toastAlignment = Alignment.bottomCenter,
91-
@Deprecated('Use toastAlignment instead')
92-
this.position = MotionToastPosition.bottom,
9389
this.borderRadius = 20,
9490
this.onClose,
9591
this.dismissable = true,
@@ -132,8 +128,6 @@ class MotionToast extends StatefulWidget {
132128
),
133129
this.animationCurve = Curves.ease,
134130
this.toastAlignment = Alignment.bottomCenter,
135-
@Deprecated('Use toastAlignment instead')
136-
this.position = MotionToastPosition.bottom,
137131
this.borderRadius = 20,
138132
this.onClose,
139133
this.dismissable = true,
@@ -176,8 +170,6 @@ class MotionToast extends StatefulWidget {
176170
),
177171
this.animationCurve = Curves.ease,
178172
this.toastAlignment = Alignment.bottomCenter,
179-
@Deprecated('Use toastAlignment instead')
180-
this.position = MotionToastPosition.bottom,
181173
this.borderRadius = 20,
182174
this.onClose,
183175
this.dismissable = true,
@@ -220,8 +212,6 @@ class MotionToast extends StatefulWidget {
220212
),
221213
this.animationCurve = Curves.ease,
222214
this.toastAlignment = Alignment.bottomCenter,
223-
@Deprecated('Use toastAlignment instead')
224-
this.position = MotionToastPosition.bottom,
225215
this.borderRadius = 20,
226216
this.onClose,
227217
this.dismissable = true,
@@ -267,8 +257,6 @@ class MotionToast extends StatefulWidget {
267257
),
268258
this.animationCurve = Curves.ease,
269259
this.toastAlignment = Alignment.bottomCenter,
270-
@Deprecated('Use toastAlignment instead')
271-
this.position = MotionToastPosition.bottom,
272260
this.borderRadius = 20,
273261
this.onClose,
274262
this.dismissable = true,
@@ -363,17 +351,6 @@ class MotionToast extends StatefulWidget {
363351
/// by default it's `Curves.ease`
364352
final Curve animationCurve;
365353

366-
/// The position where the motion toast will be displayed
367-
/// possible values
368-
/// ```dart
369-
/// {
370-
/// CENTER,
371-
/// TOP,
372-
/// BOTTOM
373-
/// }
374-
/// ```
375-
final MotionToastPosition position;
376-
377354
/// The alignment of the toast on the screen
378355
/// by default it's `Alignment.bottomCenter`.
379356
final Alignment toastAlignment;

0 commit comments

Comments
 (0)