Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jonatas
2020-09-19 13:33:18 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
819157001b4118f49996a25f01c961200489e162
81915700
1 parent
5e23f58c
format code with dartfmt
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
17 deletions
packages/get_navigation/lib/src/bottomsheet/bottomsheet.dart
packages/get_rx/lib/src/rx_core/rx_interface.dart
packages/get_test/lib/get_test.dart
packages/get_navigation/lib/src/bottomsheet/bottomsheet.dart
View file @
8191570
...
...
@@ -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
,
),
)
),
)),
),
);
},
...
...
packages/get_rx/lib/src/rx_core/rx_interface.dart
View file @
8191570
...
...
@@ -26,4 +26,3 @@ abstract class RxInterface<T> {
/// Calls [callback] with current value, when the value changes.
StreamSubscription
<
T
>
listen
(
ValueCallback
<
T
>
callback
);
}
...
...
packages/get_test/lib/get_test.dart
View file @
8191570
...
...
@@ -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
);
...
...
Please
register
or
login
to post a comment