Commit 1a3ce5cf by Karthik Ponnam

flutter analyze fixes

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