Jonatas

format code with dartfmt

... ... @@ -80,7 +80,6 @@ class GetModalBottomSheetRoute<T> extends PopupRoute<T> {
elevation:
elevation ?? sheetTheme?.modalElevation ?? sheetTheme?.elevation,
shape: shape,
clipBehavior: clipBehavior,
isScrollControlled: isScrollControlled,
enableDrag: enableDrag,
... ... @@ -154,7 +153,8 @@ class _GetModalBottomSheetState<T> extends State<_GetModalBottomSheet<T>> {
child: CustomSingleChildLayout(
delegate: _GetModalBottomSheetLayout(
animationValue, widget.isScrollControlled),
child: widget.isPersistent == false ? BottomSheet(
child: widget.isPersistent == false
? BottomSheet(
animationController: widget.route._animationController,
onClosing: () {
if (widget.route.isCurrent) {
... ... @@ -167,9 +167,11 @@ class _GetModalBottomSheetState<T> extends State<_GetModalBottomSheet<T>> {
shape: widget.shape,
clipBehavior: widget.clipBehavior,
enableDrag: widget.enableDrag,
) : Scaffold(
)
: Scaffold(
bottomSheet: BottomSheet(
animationController: widget.route._animationController,
animationController:
widget.route._animationController,
onClosing: () {
// if (widget.route.isCurrent) {
// Navigator.pop(context);
... ... @@ -182,8 +184,7 @@ class _GetModalBottomSheetState<T> extends State<_GetModalBottomSheet<T>> {
clipBehavior: widget.clipBehavior,
enableDrag: widget.enableDrag,
),
)
),
)),
),
);
},
... ... @@ -257,7 +258,8 @@ class _GetPerModalBottomSheetState<T>
child: CustomSingleChildLayout(
delegate: _GetModalBottomSheetLayout(
animationValue, widget.isScrollControlled),
child: widget.isPersistent == false ? BottomSheet(
child: widget.isPersistent == false
? BottomSheet(
animationController: widget.route._animationController,
onClosing: () {
if (widget.route.isCurrent) {
... ... @@ -270,9 +272,11 @@ class _GetPerModalBottomSheetState<T>
shape: widget.shape,
clipBehavior: widget.clipBehavior,
enableDrag: widget.enableDrag,
) : Scaffold(
)
: Scaffold(
bottomSheet: BottomSheet(
animationController: widget.route._animationController,
animationController:
widget.route._animationController,
onClosing: () {
// if (widget.route.isCurrent) {
// Navigator.pop(context);
... ... @@ -285,8 +289,7 @@ class _GetPerModalBottomSheetState<T>
clipBehavior: widget.clipBehavior,
enableDrag: widget.enableDrag,
),
)
),
)),
),
);
},
... ...
... ... @@ -26,4 +26,3 @@ abstract class RxInterface<T> {
/// Calls [callback] with current value, when the value changes.
StreamSubscription<T> listen(ValueCallback<T> callback);
}
... ...
... ... @@ -32,7 +32,7 @@ void testController<T>(
void Function(T) onInit,
void Function(T) onReady,
void Function(T) onClose,
}) {
}) {
test(description, () {
onInit(controller);
SchedulerBinding.instance.addPostFrameCallback((f) {
... ... @@ -47,7 +47,7 @@ Future<T> testGetX<T extends DisposableInterface>(
String description, {
@required GetX<T> widget,
@required void Function(T controller) test,
}) async {
}) async {
T controller;
testWidgets(description, (tester) async {
provideMockedNetworkImages(() async {
... ... @@ -63,7 +63,7 @@ Future<T> testGetBuilder<T extends GetxController>(
String description, {
@required GetBuilder<T> widget,
@required void Function(T controller) test,
}) async {
}) async {
T controller;
testWidgets(description, (tester) async {
provideMockedNetworkImages(() async {
... ... @@ -80,7 +80,7 @@ Future<T> testObx<T extends GetxController>(
@required T controller,
@required Obx Function(T controller) widget,
@required void Function(T controller) test,
}) async {
}) async {
testWidgets(description, (tester) async {
provideMockedNetworkImages(() async {
await tester.pumpWidget(GetMaterialApp(home: widget(controller)));
... ... @@ -102,7 +102,7 @@ void getTest(
bool semanticsEnabled = true,
TestVariant<Object> variant = const DefaultTestVariant(),
dynamic tags,
}) {
}) {
assert(variant != null);
assert(variant.values.isNotEmpty);
... ...