File tree 4 files changed +25
-9
lines changed
4 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
analyze :
13
- name : Analyze on ${{ matrix.os }}
13
+ name : Analyze on ${{ matrix.os }} with flutter ${{ matrix.version }}
14
14
runs-on : ${{ matrix.os }}
15
15
strategy :
16
16
matrix :
17
17
os : [ ubuntu-latest ]
18
18
version : [
19
- ' ' , # Stable
20
- ' 3.0 .0' # Minimum
19
+ ' 3.16.0 ' , # Stable
20
+ ' 3.7 .0' # Minimum
21
21
]
22
22
steps :
23
- - uses : actions/checkout@v3
23
+ - uses : actions/checkout@v4
24
24
- uses : actions/setup-java@v3
25
25
with :
26
26
distribution : ' adopt'
49
49
matrix :
50
50
os : [ macos-latest ]
51
51
steps :
52
- - uses : actions/checkout@v3
52
+ - uses : actions/checkout@v4
53
53
- uses : actions/setup-java@v3
54
54
with :
55
55
distribution : ' adopt'
71
71
matrix :
72
72
os : [ ubuntu-latest ]
73
73
steps :
74
- - uses : actions/checkout@v3
74
+ - uses : actions/checkout@v4
75
75
- uses : actions/setup-java@v3
76
76
with :
77
77
distribution : ' adopt'
Original file line number Diff line number Diff line change 1
1
# Change log
2
2
3
+ ## 3.4.0
4
+
5
+ Feat:
6
+
7
+ - Wrapper a ` Material ` widget when the ` OKToast ` widget is not wrapped with ` Material ` .
8
+ - The min support of flutter SDK version to 3.7.0.
9
+
3
10
## 3.3.2+1
4
11
5
12
- Fix ` Theatre ` constructor and get rid of ` View ` for compatibilities. (#103 )
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ class _OKToastState extends State<OKToast> {
89
89
],
90
90
);
91
91
92
- final Widget w = Directionality (
92
+ Widget w = Directionality (
93
93
textDirection: widget.textDirection,
94
94
child: overlay,
95
95
);
@@ -102,6 +102,15 @@ class _OKToastState extends State<OKToast> {
102
102
final OKToastAnimationBuilder animationBuilder =
103
103
widget.animationBuilder ?? _defaultBuildAnimation;
104
104
105
+ final haveMaterialParent = Material .maybeOf (context) != null ;
106
+
107
+ if (! haveMaterialParent) {
108
+ w = Material (
109
+ color: Colors .transparent,
110
+ child: w,
111
+ );
112
+ }
113
+
105
114
return ToastTheme (
106
115
backgroundColor: widget.backgroundColor,
107
116
radius: widget.radius,
Original file line number Diff line number Diff line change 1
1
name : oktoast
2
2
description : A pure flutter toast library, support custom style/widget, easy achieve the same effect with native toasts.
3
3
repository : https://github.com/OpenFlutter/flutter_oktoast
4
- version : 3.3.2+1
4
+ version : 3.4.0
5
5
6
6
environment :
7
7
sdk : ' >=2.17.0 <4.0.0'
8
- flutter : ' >=3.0 .0'
8
+ flutter : ' >=3.7 .0'
9
9
10
10
dependencies :
11
11
flutter :
You can’t perform that action at this time.
0 commit comments