Skip to content

Commit f8b9d77

Browse files
committed
fix pana score
1 parent 5bf58a4 commit f8b9d77

File tree

8 files changed

+19
-56
lines changed

8 files changed

+19
-56
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [5.0.0-release-candidate-9.3.2]
2+
3+
- Fix pana score
4+
5+
## [5.0.0-release-candidate-9.3.1]
6+
7+
- Fix lint errors
8+
19
## [5.0.0-release-candidate-9.3.0]
210

311
- Support for Flutter 3.29.0

example_nav2/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import 'package:example_nav2/services/auth_service.dart';
21
import 'package:flutter/material.dart';
32
import 'package:get/get.dart';
43

4+
import './services/auth_service.dart';
55
import 'app/routes/app_pages.dart';
66

77
void main() {

lib/get_navigation/src/routes/get_navigator.dart

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,17 @@
11
import 'package:flutter/widgets.dart';
22

3-
import '../../../get.dart';
4-
53
class GetNavigator extends Navigator {
6-
GetNavigator.onGenerateRoute({
7-
GlobalKey<NavigatorState>? super.key,
8-
bool Function(Route<dynamic>, dynamic)? onPopPage,
9-
required List<GetPage> super.pages,
10-
List<NavigatorObserver>? observers,
11-
super.reportsRouteUpdateToEngine,
12-
TransitionDelegate? transitionDelegate,
13-
super.initialRoute,
14-
super.restorationScopeId,
15-
}) : super(
16-
//keys should be optional
17-
onPopPage: onPopPage ??
18-
(route, result) {
19-
final didPop = route.didPop(result);
20-
if (!didPop) {
21-
return false;
22-
}
23-
return true;
24-
},
25-
onGenerateRoute: (settings) {
26-
final selectedPageList =
27-
pages.where((element) => element.name == settings.name);
28-
if (selectedPageList.isNotEmpty) {
29-
final selectedPage = selectedPageList.first;
30-
return GetPageRoute(
31-
page: selectedPage.page,
32-
settings: settings,
33-
);
34-
}
35-
return null;
36-
},
37-
observers: [
38-
// GetObserver(),
39-
...?observers,
40-
],
41-
transitionDelegate:
42-
transitionDelegate ?? const DefaultTransitionDelegate<dynamic>(),
43-
);
44-
454
GetNavigator({
465
super.key,
476
bool Function(Route<dynamic>, dynamic)? onPopPage,
48-
required List<GetPage> super.pages,
7+
required super.pages,
498
List<NavigatorObserver>? observers,
509
super.reportsRouteUpdateToEngine,
5110
TransitionDelegate? transitionDelegate,
5211
super.initialRoute,
5312
super.restorationScopeId,
5413
}) : super(
14+
// ignore: deprecated_member_use
5515
onPopPage: onPopPage ??
5616
(route, result) {
5717
final didPop = route.didPop(result);

lib/get_rx/src/rx_types/rx_core/rx_impl.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ mixin RxObjectMixin<T> on GetListenable<T> {
124124
return subscription;
125125
}
126126

127-
/// Binds an existing `Stream<T>` to this Rx<T> to keep the values in sync.
127+
/// Binds an existing `Stream<T>` to this `Rx<T>` to keep the values in sync.
128128
/// You can bind multiple sources to update the value.
129129
/// Closing the subscription will happen automatically when the observer
130130
/// Widget (`GetX` or `Obx`) gets unmounted from the Widget tree.
@@ -182,8 +182,8 @@ abstract class _RxImpl<T> extends GetListenable<T> with RxObjectMixin<T> {
182182
///
183183
/// For example, supposed we have a `int seconds = 2` and we want to animate
184184
/// from invisible to visible a widget in two seconds:
185-
/// RxEvent<int>.call(seconds);
186-
/// then after a click happens, you want to call a RxEvent<int>.call(seconds).
185+
/// `RxEvent<int>.call(seconds);`
186+
/// then after a click happens, you want to call a `RxEvent<int>.call(seconds)`.
187187
/// By doing `call(seconds)`, if the value being held is the same,
188188
/// the listeners won't trigger, hence we need this new `trigger` function.
189189
/// This will refresh the listener of an AnimatedWidget and will keep

lib/get_rx/src/rx_types/rx_core/rx_interface.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ part of '../rx_types.dart';
22

33
/// This class is the foundation for all reactive (Rx) classes that makes Get
44
/// so powerful.
5-
/// This interface is the contract that [_RxImpl]<T> uses in all it's
5+
/// This interface is the contract that `_RxImpl<T>` uses in all it's
66
/// subclass.
77
abstract class RxInterface<T> implements ValueListenable<T> {
88
/// Close the Rx Variable

lib/get_rx/src/rx_types/rx_iterables/rx_list.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,7 @@ extension ListExtension<E> on List<E> {
144144
if (item != null) add(item);
145145
}
146146

147-
// /// Add [Iterable<E>] to [List<E>] only if [Iterable<E>] is not null.
148-
// void addAllNonNull(Iterable<E> item) {
149-
// if (item != null) addAll(item);
150-
// }
151-
152-
/// Add [item] to List<E> only if [condition] is true.
147+
/// Add [item] to [List<E>] only if [condition] is true.
153148
void addIf(dynamic condition, E item) {
154149
if (condition is Condition) condition = condition();
155150
if (condition is bool && condition) add(item);

lib/get_state_manager/src/simple/get_view.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'get_state.dart';
66
import 'get_widget_cache.dart';
77

88
/// GetView is a great way of quickly access your Controller
9-
/// without having to call Get.find<AwesomeController>() yourself.
9+
/// without having to call `Get.find<AwesomeController>()` yourself.
1010
///
1111
/// Sample:
1212
/// ```
@@ -43,7 +43,7 @@ abstract class GetView<T> extends StatelessWidget {
4343
}
4444

4545
/// GetWidget is a great way of quickly access your individual Controller
46-
/// without having to call Get.find<AwesomeController>() yourself.
46+
/// without having to call `Get.find<AwesomeController>()` yourself.
4747
/// Get save you controller on cache, so, you can to use Get.create() safely
4848
/// GetWidget is perfect to multiples instance of a same controller. Each
4949
/// GetWidget will have your own controller, and will be call events as `onInit`

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: get
22
description: Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetX.
3-
version: 5.0.0-release-candidate-9.3.0
3+
version: 5.0.0-release-candidate-9.3.2
44
homepage: https://github.com/jonataslaw/getx
55

66
environment:

0 commit comments

Comments
 (0)