Skip to content

Commit 7da4e36

Browse files
committed
5.4.2
1 parent 4d03c8d commit 7da4e36

File tree

17 files changed

+338
-156
lines changed

17 files changed

+338
-156
lines changed

CHANGELOG.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
1+
## 5.4.2
2+
December 11, 2024
3+
- *BUGFIX* Moved Sizer() from app_statex.dart to app_statefulwidget.dart
4+
- app.dart renamed app_object.dart
5+
- app_state.dart renamed app_statex.dart
6+
- app.dart renamed app_statex_controller.dart
7+
- *Deprecated* AppState() and AppController() class are deprecated.
8+
- class AppState renamed class AppStateX
9+
- class AppController renamed AppStateXController
10+
211
## 5.4.1
312
December 04, 2024
413
- Optional type argument, T, was not specified.
@@ -21,8 +30,8 @@ October 07, 2024
2130

2231
## 5.3.2+1
2332
October 06, 2024
24-
- *FIX* Removed 'default' Error Handler mistakenly left in Production.
25-
- *FIX* Removed 'default' Error Widget Builder mistakenly left in Production.
33+
- *BUGFIX* Removed 'default' Error Handler mistakenly left in Production.
34+
- *BUGFIX* Removed 'default' Error Widget Builder mistakenly left in Production.
2635
- A default Error Screen, defaultErrorWidgetBuilder, available during development
2736
- Getters, errorHandler, oldOnError and oldBuilder, offered now in error_handler.dart
2837
- Null error correction in example app

example/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
## 1.3.0
3+
December 11, 2024
4+
- class AppState renamed class AppStateX
5+
class AppController renamed AppStateXController
6+
-
27
## 1.2.0
38
- *Deprecated* StateIn() and StateF() class are deprecated to keep it simple.
49
Use the StateX parameters, *runAsync* and *useInherited*, instead.'

example/integration_test/src/tests/unit/src/controller/test_handle_error.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void testHandleError(WidgetTester tester) {
1919

2020
var state = con.state;
2121

22-
if (state != null && state is AppState) {
22+
if (state != null && state is AppStateX) {
2323
//
2424
state.onError(FlutterErrorDetails(exception: error));
2525
}

example/integration_test/src/tests/unit/src/view/test_app_state.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Future<void> testAppState(WidgetTester tester) async {
55
// Find its StatefulWidget first then the 'type' of State object.
66
// final appState = tester.firstState<AppState>(find.byType(FlutteryExampleApp));
77

8-
final appState = ExampleAppController().state as AppState;
8+
final appState = ExampleAppController().state as AppStateX;
99

1010
bool? use = appState.useCupertino;
1111

example/lib/src/app/controller/example_controller.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class ExampleAppController extends AppController {
134134

135135
Future<void> changeLocale() async {
136136
//
137-
final appState = rootState! as AppState;
137+
final appState = rootState! as AppStateX;
138138

139139
final locale = appState.locale!;
140140

example/lib/src/app/view/app.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ class FlutteryExampleApp extends AppStatefulWidget {
1010
FlutteryExampleApp({super.key});
1111
// This is the 'App State object' of the application.
1212
@override
13-
AppState createAppState() => _ExampleAppState();
13+
AppStateX createAppState() => _ExampleAppState();
1414
}
1515

1616
/// This is the 'View' of the application.
1717
/// The 'look and behavior' of the app.
1818
///
19-
class _ExampleAppState extends AppState {
19+
class _ExampleAppState extends AppStateX<FlutteryExampleApp> {
2020
_ExampleAppState()
2121
: super(
2222
controller: ExampleAppController(),

example/lib/src/main/view/screens/counter/view/page_02.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Page2State extends StateX<Page2> {
4040
/// Even the app's 'first' State object has a reference to itself
4141
final firstState = controller?.rootState;
4242

43-
assert(firstState is AppState, "Should be the 'root' state object.");
43+
assert(firstState is AppStateX, "Should be the 'root' state object.");
4444

4545
/// The latest BuildContext in the app.
4646
/// This is so important, there's a number of ways to get it.
@@ -82,7 +82,7 @@ class Page2State extends StateX<Page2> {
8282
final rootState = appCon?.state;
8383

8484
// All three share the same State object.
85-
assert(rootState is AppState, "Should be the 'root' state object.");
85+
assert(rootState is AppStateX, "Should be the 'root' state object.");
8686
}
8787

8888
/// Define the 'child' Widget that will be passed to the InheritedWidget above.

example/pubspec.lock

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,10 @@ packages:
279279
dependency: "direct dev"
280280
description:
281281
name: flutter_lints
282-
sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
282+
sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
283283
url: "https://pub.dev"
284284
source: hosted
285-
version: "4.0.0"
285+
version: "5.0.0"
286286
flutter_localizations:
287287
dependency: transitive
288288
description: flutter
@@ -312,7 +312,7 @@ packages:
312312
path: ".."
313313
relative: true
314314
source: path
315-
version: "5.4.1"
315+
version: "5.4.2"
316316
fuchsia_remote_debug_protocol:
317317
dependency: transitive
318318
description: flutter
@@ -391,10 +391,10 @@ packages:
391391
dependency: transitive
392392
description:
393393
name: lints
394-
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
394+
sha256: "3315600f3fb3b135be672bf4a178c55f274bebe368325ae18462c89ac1e3b413"
395395
url: "https://pub.dev"
396396
source: hosted
397-
version: "4.0.0"
397+
version: "5.0.0"
398398
logging:
399399
dependency: transitive
400400
description:
@@ -480,18 +480,18 @@ packages:
480480
dependency: transitive
481481
description:
482482
name: path_provider_android
483-
sha256: "8c4967f8b7cb46dc914e178daa29813d83ae502e0529d7b0478330616a691ef7"
483+
sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2"
484484
url: "https://pub.dev"
485485
source: hosted
486-
version: "2.2.14"
486+
version: "2.2.15"
487487
path_provider_foundation:
488488
dependency: transitive
489489
description:
490490
name: path_provider_foundation
491-
sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16
491+
sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942"
492492
url: "https://pub.dev"
493493
source: hosted
494-
version: "2.4.0"
494+
version: "2.4.1"
495495
path_provider_linux:
496496
dependency: transitive
497497
description:
@@ -616,10 +616,10 @@ packages:
616616
dependency: transitive
617617
description:
618618
name: sizer
619-
sha256: "4694472b5d64ac317a6dc4b00868822e38db802269ee791d1f486772deda56c7"
619+
sha256: "6f68f574b6dd052e87c4abf67fe4feb316651fab02430ef7e53e991c15acfcb7"
620620
url: "https://pub.dev"
621621
source: hosted
622-
version: "3.0.4"
622+
version: "3.0.5"
623623
sky_engine:
624624
dependency: transitive
625625
description: flutter
@@ -749,10 +749,10 @@ packages:
749749
dependency: transitive
750750
description:
751751
name: timezone
752-
sha256: "2236ec079a174ce07434e89fcd3fcda430025eb7692244139a9cf54fdcf1fc7d"
752+
sha256: ffc9d5f4d1193534ef051f9254063fa53d588609418c84299956c3db9383587d
753753
url: "https://pub.dev"
754754
source: hosted
755-
version: "0.9.4"
755+
version: "0.10.0"
756756
typed_data:
757757
dependency: transitive
758758
description:
@@ -805,10 +805,10 @@ packages:
805805
dependency: transitive
806806
description:
807807
name: url_launcher_ios
808-
sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e
808+
sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626"
809809
url: "https://pub.dev"
810810
source: hosted
811-
version: "6.3.1"
811+
version: "6.3.2"
812812
url_launcher_linux:
813813
dependency: transitive
814814
description:
@@ -821,10 +821,10 @@ packages:
821821
dependency: transitive
822822
description:
823823
name: url_launcher_macos
824-
sha256: "769549c999acdb42b8bcfa7c43d72bf79a382ca7441ab18a808e101149daf672"
824+
sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2"
825825
url: "https://pub.dev"
826826
source: hosted
827-
version: "3.2.1"
827+
version: "3.2.2"
828828
url_launcher_platform_interface:
829829
dependency: transitive
830830
description:

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Create a production-ready Flutter App using a 'framework' full of f
33
homepage: https://www.andrioussolutions.com
44
repository: https://github.com/AndriousSolutions/flutter_framework/example
55

6-
version: 1.2.0
6+
version: 1.3.0
77

88
environment:
99
sdk: '>=3.0.0 <4.0.0'
@@ -59,7 +59,7 @@ dev_dependencies:
5959

6060
# The "flutter_lints" package below contains a set of recommended lints to
6161
# encourage good coding practices.
62-
flutter_lints: ^4.0.0
62+
flutter_lints: ^5.0.0
6363

6464
integration_test:
6565
sdk: flutter

lib/controller.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ export 'package:state_extended/state_extended.dart'
1818
show StateXController, SetStateMixin, StateListener, RootState, AsyncOps;
1919

2020
// App's View
21-
export '/view/app.dart' show App, AppDrawer;
21+
export '/view/app_object.dart' show App, AppDrawer;
2222

2323
//App's Controller
24-
export 'controller/app.dart' show AppController;
24+
export 'controller/app_statex_controller.dart' show AppController, AppStateXController;
2525

2626
// Device Info
2727
export 'controller/device_info.dart' show DeviceInfo;

0 commit comments

Comments
 (0)