Commit 1a3ce5cf by Karthik Ponnam

flutter analyze fixes

parent 6d1607e1
## [8.0.3]
- flutter analyze fixes
## [8.0.2]
- Null Safety
......
......@@ -34,7 +34,7 @@ This one has limited features and no control over UI
```yaml
# add this line to your dependencies
fluttertoast: ^8.0.2
fluttertoast: ^8.0.3
```
```dart
......
......@@ -78,7 +78,7 @@ packages:
path: ".."
relative: true
source: path
version: "8.0.2"
version: "8.0.3"
js:
dependency: transitive
description:
......
......@@ -205,36 +205,27 @@ class FToast {
switch (gravity) {
case ToastGravity.TOP:
return Positioned(top: 100.0, left: 24.0, right: 24.0, child: child);
break;
case ToastGravity.TOP_LEFT:
return Positioned(top: 100.0, left: 24.0, child: child);
break;
case ToastGravity.TOP_RIGHT:
return Positioned(top: 100.0, right: 24.0, child: child);
break;
case ToastGravity.CENTER:
return Positioned(
top: 50.0, bottom: 50.0, left: 24.0, right: 24.0, child: child);
break;
case ToastGravity.CENTER_LEFT:
return Positioned(top: 50.0, bottom: 50.0, left: 24.0, child: child);
break;
case ToastGravity.CENTER_RIGHT:
return Positioned(top: 50.0, bottom: 50.0, right: 24.0, child: child);
break;
case ToastGravity.BOTTOM_LEFT:
return Positioned(bottom: 50.0, left: 24.0, child: child);
break;
case ToastGravity.BOTTOM_RIGHT:
return Positioned(bottom: 50.0, right: 24.0, child: child);
break;
case ToastGravity.SNACKBAR:
return Positioned(
bottom: MediaQuery.of(context!).viewInsets.bottom,
left: 0,
right: 0,
child: child);
break;
case ToastGravity.BOTTOM:
default:
return Positioned(bottom: 50.0, left: 24.0, right: 24.0, child: child);
......
name: fluttertoast
description: Toast Library for Flutter, Easily create toast messages in single line of code
version: 8.0.2
version: 8.0.3
homepage: https://github.com/PonnamKarthik/FlutterToast
issue_tracker: https://github.com/ponnamkarthik/FlutterToast/issues
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment