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
Jonny Borges
2022-01-03 12:09:21 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9c6666cc938c526f372fde858317fe440201acf0
9c6666cc
1 parent
a59dd56b
fix
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
example/test/widget_test.dart
lib/get_navigation/src/routes/default_route.dart
lib/get_rx/src/rx_stream/get_stream.dart
lib/get_rx/src/rx_types/rx_iterables/rx_set.dart
lib/get_state_manager/src/simple/get_state.dart
test/benchmarks/benckmark_test.dart
example/test/widget_test.dart
View file @
9c6666c
...
...
lib/get_navigation/src/routes/default_route.dart
View file @
9c6666c
...
...
@@ -112,7 +112,7 @@ class GetPageRoute<T> extends PageRoute<T> //MaterialPageRoute<T>
final
bindingsToBind
=
middlewareRunner
.
runOnBindingsStart
(
binding
!=
null
?
localbindings
:
localbinds
);
/// Retrocompatibility workaround, remove this when Bindings api
/// Retrocompatibility workaround, remove this when Bindings api
/// have been removed
if
(
bindingsToBind
!=
null
&&
bindingsToBind
is
!
List
<
Bind
>
&&
...
...
lib/get_rx/src/rx_stream/get_stream.dart
View file @
9c6666c
...
...
@@ -225,5 +225,5 @@
// typedef RemoveSubscription<T> = FutureOr<bool?> Function(
// LightSubscription<T> subs);
// typedef AddSubscription<T> =
// typedef AddSubscription<T> =
//FutureOr<void> Function(LightSubscription<T> subs);
...
...
lib/get_rx/src/rx_types/rx_iterables/rx_set.dart
View file @
9c6666c
...
...
@@ -34,8 +34,8 @@ class RxSet<E> extends GetListenable<Set<E>>
}
@override
bool
add
(
E
value
)
{
final
hasAdded
=
value
.
add
(
value
);
bool
add
(
E
val
)
{
final
hasAdded
=
value
.
add
(
val
);
if
(
hasAdded
)
{
refresh
();
}
...
...
lib/get_state_manager/src/simple/get_state.dart
View file @
9c6666c
...
...
@@ -361,7 +361,6 @@ class BindWrapper<T> extends InheritedWidget {
this
.
didUpdateWidget
,
})
:
super
(
key:
key
,
child:
child
);
final
InitBuilder
<
T
>?
init
;
final
bool
global
;
final
Object
?
id
;
...
...
test/benchmarks/benckmark_test.dart
View file @
9c6666c
...
...
@@ -158,7 +158,7 @@ GetValue is ${calculePercentage(dart, getx).round()}% faster than Default ValueN
print
(
'============================================'
);
print
(
'DART STREAM X GET_STREAM X GET_MINI_STREAM TEST'
);
print
(
'-----------'
);
// var getx = await getStream();
// var getx = await getStream();
var
mini
=
await
miniStream
();
var
dart
=
await
stream
();
print
(
'-----------'
);
...
...
@@ -168,16 +168,16 @@ GetStream is ${calculePercentage(dart, mini).round()}% faster than Default Strea
times
=
30000
;
dart
=
await
stream
();
// getx = await getStream();
// getx = await getStream();
mini
=
await
miniStream
();
times
=
60000
;
dart
=
await
stream
();
// getx = await getStream();
// getx = await getStream();
mini
=
await
miniStream
();
print
(
'-----------'
);
print
(
'dart_stream delay
$dart
ms to made
$times
requests'
);
// print('getx_stream delay $getx ms to made $times requests');
// print('getx_stream delay $getx ms to made $times requests');
print
(
'getx_mini_stream delay
$mini
ms to made
$times
requests'
);
print
(
'-----------'
);
print
(
'''
...
...
Please
register
or
login
to post a comment