Showing
16 changed files
with
27 additions
and
27 deletions
1 | import 'package:get/src/core/log.dart'; | 1 | import 'package:get/src/core/log.dart'; |
2 | import 'package:get/src/navigation/root/smart_management.dart'; | 2 | import 'package:get/src/navigation/root/smart_management.dart'; |
3 | -import 'package:get/src/state_manager/rx/rx_interface.dart'; | 3 | +import 'package:get/src/state_manager/rx/rx_core/rx_interface.dart'; |
4 | import 'package:get/src/utils/queue/get_queue.dart'; | 4 | import 'package:get/src/utils/queue/get_queue.dart'; |
5 | 5 | ||
6 | class GetConfig { | 6 | class GetConfig { |
1 | import 'dart:async'; | 1 | import 'dart:async'; |
2 | import 'package:flutter/scheduler.dart'; | 2 | import 'package:flutter/scheduler.dart'; |
3 | -import 'rx_typedefs.dart'; | 3 | +import '../rx_typedefs/rx_typedefs.dart'; |
4 | 4 | ||
5 | /// This class is the foundation for all reactive (Rx) classes that makes Get | 5 | /// This class is the foundation for all reactive (Rx) classes that makes Get |
6 | /// so powerful. | 6 | /// so powerful. |
@@ -2,9 +2,9 @@ import 'dart:async'; | @@ -2,9 +2,9 @@ import 'dart:async'; | ||
2 | import 'dart:math'; | 2 | import 'dart:math'; |
3 | import 'package:flutter/foundation.dart'; | 3 | import 'package:flutter/foundation.dart'; |
4 | 4 | ||
5 | -import 'rx_impl.dart'; | ||
6 | -import 'rx_interface.dart'; | ||
7 | -import 'rx_typedefs.dart'; | 5 | +import '../rx_core/rx_impl.dart'; |
6 | +import '../rx_core/rx_interface.dart'; | ||
7 | +import '../rx_typedefs/rx_typedefs.dart'; | ||
8 | 8 | ||
9 | 9 | ||
10 | /// Create a list similar to `List<T>` | 10 | /// Create a list similar to `List<T>` |
1 | import 'dart:async'; | 1 | import 'dart:async'; |
2 | import 'package:meta/meta.dart'; | 2 | import 'package:meta/meta.dart'; |
3 | -import '../../../get.dart'; | ||
4 | -import 'rx_interface.dart'; | ||
5 | -import 'rx_typedefs.dart'; | 3 | +import '../../../../get.dart'; |
4 | +import '../rx_core/rx_interface.dart'; | ||
5 | +import '../rx_typedefs/rx_typedefs.dart'; | ||
6 | 6 | ||
7 | class RxMap<K, V> extends RxInterface<Map<K, V>> implements Map<K, V> { | 7 | class RxMap<K, V> extends RxInterface<Map<K, V>> implements Map<K, V> { |
8 | RxMap([Map<K, V> initial]) { | 8 | RxMap([Map<K, V> initial]) { |
@@ -2,9 +2,9 @@ import 'dart:async'; | @@ -2,9 +2,9 @@ import 'dart:async'; | ||
2 | 2 | ||
3 | import 'package:flutter/foundation.dart'; | 3 | import 'package:flutter/foundation.dart'; |
4 | 4 | ||
5 | -import 'rx_impl.dart'; | ||
6 | -import 'rx_interface.dart'; | ||
7 | -import 'rx_typedefs.dart'; | 5 | +import '../rx_core/rx_impl.dart'; |
6 | +import '../rx_core/rx_interface.dart'; | ||
7 | +import '../rx_typedefs/rx_typedefs.dart'; | ||
8 | 8 | ||
9 | class RxSet<E> implements Set<E>, RxInterface<Set<E>> { | 9 | class RxSet<E> implements Set<E>, RxInterface<Set<E>> { |
10 | RxSet([Set<E> initial]) { | 10 | RxSet([Set<E> initial]) { |
@@ -3,8 +3,8 @@ import 'dart:async'; | @@ -3,8 +3,8 @@ import 'dart:async'; | ||
3 | import 'package:flutter/widgets.dart'; | 3 | import 'package:flutter/widgets.dart'; |
4 | import 'package:get/src/instance/get_instance.dart'; | 4 | import 'package:get/src/instance/get_instance.dart'; |
5 | import 'package:get/src/navigation/root/smart_management.dart'; | 5 | import 'package:get/src/navigation/root/smart_management.dart'; |
6 | -import 'rx_impl.dart'; | ||
7 | -import 'rx_interface.dart'; | 6 | +import '../rx_core/rx_impl.dart'; |
7 | +import '../rx_core/rx_interface.dart'; | ||
8 | 8 | ||
9 | class GetX<T extends DisposableInterface> extends StatefulWidget { | 9 | class GetX<T extends DisposableInterface> extends StatefulWidget { |
10 | final Widget Function(T) builder; | 10 | final Widget Function(T) builder; |
lib/src/state_manager/rx/rx_obx_widget.dart
→
lib/src/state_manager/rx/rx_widgets/rx_obx_widget.dart
1 | import 'dart:async'; | 1 | import 'dart:async'; |
2 | import 'package:flutter/widgets.dart'; | 2 | import 'package:flutter/widgets.dart'; |
3 | -import 'package:get/src/state_manager/rx/rx_interface.dart'; | ||
4 | -import 'rx_impl.dart'; | 3 | +import 'package:get/src/state_manager/rx/rx_core/rx_interface.dart'; |
4 | +import '../rx_core/rx_impl.dart'; | ||
5 | 5 | ||
6 | 6 | ||
7 | 7 |
1 | import 'dart:async'; | 1 | import 'dart:async'; |
2 | import 'package:get/get.dart'; | 2 | import 'package:get/get.dart'; |
3 | -import 'rx_interface.dart'; | 3 | +import '../rx_core/rx_interface.dart'; |
4 | import 'utils/debouncer.dart'; | 4 | import 'utils/debouncer.dart'; |
5 | 5 | ||
6 | Worker ever(RxInterface listener, Function(dynamic) callback, | 6 | Worker ever(RxInterface listener, Function(dynamic) callback, |
@@ -2,7 +2,7 @@ import 'dart:collection'; | @@ -2,7 +2,7 @@ import 'dart:collection'; | ||
2 | import 'package:flutter/widgets.dart'; | 2 | import 'package:flutter/widgets.dart'; |
3 | import 'package:get/src/instance/get_instance.dart'; | 3 | import 'package:get/src/instance/get_instance.dart'; |
4 | import 'package:get/src/navigation/root/smart_management.dart'; | 4 | import 'package:get/src/navigation/root/smart_management.dart'; |
5 | -import 'package:get/src/state_manager/rx/rx_interface.dart'; | 5 | +import 'package:get/src/state_manager/rx/rx_core/rx_interface.dart'; |
6 | import 'package:get/state_manager.dart'; | 6 | import 'package:get/state_manager.dart'; |
7 | 7 | ||
8 | import 'simple_builder.dart'; | 8 | import 'simple_builder.dart'; |
1 | import 'package:flutter/widgets.dart'; | 1 | import 'package:flutter/widgets.dart'; |
2 | -import 'package:get/src/state_manager/rx/rx_obx_widget.dart'; | 2 | +import 'package:get/src/state_manager/rx/rx_widgets/rx_obx_widget.dart'; |
3 | import 'get_state.dart'; | 3 | import 'get_state.dart'; |
4 | 4 | ||
5 | class MixinBuilder<T extends GetxController> extends StatelessWidget { | 5 | class MixinBuilder<T extends GetxController> extends StatelessWidget { |
@@ -3,11 +3,11 @@ export 'src/state_manager/simple/immutable_state.dart'; | @@ -3,11 +3,11 @@ export 'src/state_manager/simple/immutable_state.dart'; | ||
3 | export 'src/state_manager/simple/get_view.dart'; | 3 | export 'src/state_manager/simple/get_view.dart'; |
4 | export 'src/state_manager/simple/simple_builder.dart'; | 4 | export 'src/state_manager/simple/simple_builder.dart'; |
5 | export 'src/state_manager/simple/mixin_state.dart'; | 5 | export 'src/state_manager/simple/mixin_state.dart'; |
6 | -export 'src/state_manager/rx/rx_interface.dart'; | ||
7 | -export 'src/state_manager/rx/rx_impl.dart'; | ||
8 | -export 'src/state_manager/rx/rx_list.dart'; | ||
9 | -export 'src/state_manager/rx/rx_map.dart'; | ||
10 | -export 'src/state_manager/rx/rx_set.dart'; | ||
11 | -export 'src/state_manager/rx/rx_workers.dart'; | ||
12 | -export 'src/state_manager/rx/rx_obx_widget.dart'; | ||
13 | -export 'src/state_manager/rx/rx_getx_widget.dart'; | 6 | +export 'src/state_manager/rx/rx_core/rx_interface.dart'; |
7 | +export 'src/state_manager/rx/rx_core/rx_impl.dart'; | ||
8 | +export 'src/state_manager/rx/rx_iterables/rx_list.dart'; | ||
9 | +export 'src/state_manager/rx/rx_iterables/rx_map.dart'; | ||
10 | +export 'src/state_manager/rx/rx_iterables/rx_set.dart'; | ||
11 | +export 'src/state_manager/rx/rx_workers/rx_workers.dart'; | ||
12 | +export 'src/state_manager/rx/rx_widgets/rx_obx_widget.dart'; | ||
13 | +export 'src/state_manager/rx/rx_widgets/rx_getx_widget.dart'; |
-
Please register or login to post a comment