Skip to content

Commit 7e7eb8a

Browse files
committed
style: format code
1 parent 22e8f97 commit 7e7eb8a

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

lib/src/keyboard_safe_area.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ class KeyboardSafeArea extends StatelessWidget {
1515
}
1616
MediaQueryData data = MediaQuery.of(context);
1717
return Padding(
18-
padding: EdgeInsets.only(
19-
bottom: data.viewInsets.bottom),
18+
padding: EdgeInsets.only(bottom: data.viewInsets.bottom),
2019
child: child,
2120
);
2221
}

lib/src/toast_widget/animation.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ Widget textAnimation(
1616
child: child,
1717
);
1818

19-
Widget loadingAnimation(AnimationController controller, CancelFunc cancelFunc,
20-
Widget child) =>
19+
Widget loadingAnimation(
20+
AnimationController controller, CancelFunc cancelFunc, Widget child) =>
2121
FadeAnimation(
2222
controller: controller,
2323
child: child,
2424
);
2525

26-
Widget attachedAnimation(AnimationController controller, CancelFunc cancelFunc,
27-
Widget child) =>
26+
Widget attachedAnimation(
27+
AnimationController controller, CancelFunc cancelFunc, Widget child) =>
2828
FadeAnimation(
2929
controller: controller,
3030
child: child,

lib/src/toast_widget/attached.dart

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,19 @@ Offset positionToastBox(
117117
case "Left":
118118
direction += canPlaceRight(extraSpace: targetRect.width)
119119
? "Left"
120-
: canPlaceLeft(extraSpace: targetRect.width) ? "Right" : "Center";
120+
: canPlaceLeft(extraSpace: targetRect.width)
121+
? "Right"
122+
: "Center";
121123
break;
122124
case "Center":
123125
direction += "Center";
124126
break;
125127
case "Right":
126128
direction += canPlaceLeft(extraSpace: targetRect.width)
127129
? "Right"
128-
: canPlaceRight(extraSpace: targetRect.width) ? "Left" : "Center";
130+
: canPlaceRight(extraSpace: targetRect.width)
131+
? "Left"
132+
: "Center";
129133
break;
130134
}
131135
} else {
@@ -135,15 +139,19 @@ Offset positionToastBox(
135139
case "Top":
136140
direction += canPlaceBottom(extraSpace: targetRect.height)
137141
? "Top"
138-
: canPlaceTop(extraSpace: targetRect.height) ? "Bottom" : "Center";
142+
: canPlaceTop(extraSpace: targetRect.height)
143+
? "Bottom"
144+
: "Center";
139145
break;
140146
case "Center":
141147
direction += "Center";
142148
break;
143149
case "Bottom":
144150
direction += canPlaceTop(extraSpace: targetRect.height)
145151
? "Bottom"
146-
: canPlaceBottom(extraSpace: targetRect.height) ? "Top" : "Center";
152+
: canPlaceBottom(extraSpace: targetRect.height)
153+
? "Top"
154+
: "Center";
147155
break;
148156
}
149157
}

0 commit comments

Comments
 (0)