File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ class KeyboardSafeArea extends StatelessWidget {
15
15
}
16
16
MediaQueryData data = MediaQuery .of (context);
17
17
return Padding (
18
- padding: EdgeInsets .only (
19
- bottom: data.viewInsets.bottom),
18
+ padding: EdgeInsets .only (bottom: data.viewInsets.bottom),
20
19
child: child,
21
20
);
22
21
}
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ Widget textAnimation(
16
16
child: child,
17
17
);
18
18
19
- Widget loadingAnimation (AnimationController controller, CancelFunc cancelFunc,
20
- Widget child) =>
19
+ Widget loadingAnimation (
20
+ AnimationController controller, CancelFunc cancelFunc, Widget child) =>
21
21
FadeAnimation (
22
22
controller: controller,
23
23
child: child,
24
24
);
25
25
26
- Widget attachedAnimation (AnimationController controller, CancelFunc cancelFunc,
27
- Widget child) =>
26
+ Widget attachedAnimation (
27
+ AnimationController controller, CancelFunc cancelFunc, Widget child) =>
28
28
FadeAnimation (
29
29
controller: controller,
30
30
child: child,
Original file line number Diff line number Diff line change @@ -117,15 +117,19 @@ Offset positionToastBox(
117
117
case "Left" :
118
118
direction += canPlaceRight (extraSpace: targetRect.width)
119
119
? "Left"
120
- : canPlaceLeft (extraSpace: targetRect.width) ? "Right" : "Center" ;
120
+ : canPlaceLeft (extraSpace: targetRect.width)
121
+ ? "Right"
122
+ : "Center" ;
121
123
break ;
122
124
case "Center" :
123
125
direction += "Center" ;
124
126
break ;
125
127
case "Right" :
126
128
direction += canPlaceLeft (extraSpace: targetRect.width)
127
129
? "Right"
128
- : canPlaceRight (extraSpace: targetRect.width) ? "Left" : "Center" ;
130
+ : canPlaceRight (extraSpace: targetRect.width)
131
+ ? "Left"
132
+ : "Center" ;
129
133
break ;
130
134
}
131
135
} else {
@@ -135,15 +139,19 @@ Offset positionToastBox(
135
139
case "Top" :
136
140
direction += canPlaceBottom (extraSpace: targetRect.height)
137
141
? "Top"
138
- : canPlaceTop (extraSpace: targetRect.height) ? "Bottom" : "Center" ;
142
+ : canPlaceTop (extraSpace: targetRect.height)
143
+ ? "Bottom"
144
+ : "Center" ;
139
145
break ;
140
146
case "Center" :
141
147
direction += "Center" ;
142
148
break ;
143
149
case "Bottom" :
144
150
direction += canPlaceTop (extraSpace: targetRect.height)
145
151
? "Bottom"
146
- : canPlaceBottom (extraSpace: targetRect.height) ? "Top" : "Center" ;
152
+ : canPlaceBottom (extraSpace: targetRect.height)
153
+ ? "Top"
154
+ : "Center" ;
147
155
break ;
148
156
}
149
157
}
You can’t perform that action at this time.
0 commit comments