Skip to content

Commit 794659b

Browse files
committed
5.5.0
1 parent 90a3651 commit 794659b

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2+
## 5.5.0
3+
December 11, 2024
4+
- Introduced parameter, themeAnimationStyle,for class MaterialApp
5+
- @protected @factory v.AppStateX createAppState();
6+
17
## 5.4.2+1
28
December 11, 2024
39
- *BUGFIX* Moved Sizer() from app_statex.dart to app_statefulwidget.dart

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

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

1616
/// This is the 'View' of the application.

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ packages:
312312
path: ".."
313313
relative: true
314314
source: path
315-
version: "5.4.2"
315+
version: "5.5.0"
316316
fuchsia_remote_debug_protocol:
317317
dependency: transitive
318318
description: flutter

lib/view/app_statefulwidget.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ abstract class AppStatefulWidget extends StatefulWidget {
6363
final bool? circularProgressIndicator;
6464

6565
/// Create the app-level State object.
66+
@protected
67+
@factory
6668
v.AppStateX createAppState();
6769

6870
/// Creates the App's State object.

lib/view/app_statex.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ class AppStateX<T extends StatefulWidget> extends _AppState<T>
139139
Map<Type, Action<Intent>>? actions,
140140
String? restorationScopeId,
141141
ScrollBehavior? scrollBehavior,
142+
AnimationStyle? themeAnimationStyle,
142143
super.errorHandler,
143144
super.errorScreen,
144145
super.errorReport,
@@ -187,6 +188,7 @@ class AppStateX<T extends StatefulWidget> extends _AppState<T>
187188
super.inActions,
188189
super.inRestorationScopeId,
189190
super.inScrollBehavior,
191+
super.inThemeAnimationStyle,
190192
}) : super(controller: controller ?? AppStateXController()) {
191193
//
192194
_key = key;
@@ -272,6 +274,7 @@ class AppStateX<T extends StatefulWidget> extends _AppState<T>
272274
_actions = actions;
273275
_restorationScopeId = restorationScopeId;
274276
_scrollBehavior = scrollBehavior;
277+
_themeAnimationStyle = themeAnimationStyle;
275278
}
276279

277280
/// The 'App State Objects' [Key]
@@ -625,6 +628,8 @@ class AppStateX<T extends StatefulWidget> extends _AppState<T>
625628
actions: _actions ?? onActions(),
626629
restorationScopeId: _restorationScopeId ?? onRestorationScopeId(),
627630
scrollBehavior: _scrollBehavior ?? onScrollBehavior(),
631+
themeAnimationStyle:
632+
_themeAnimationStyle ?? onThemeAnimationStyle(),
628633
// Let the parameters run before the home parameter.
629634
home: _home ?? onHome(),
630635
);
@@ -682,6 +687,8 @@ class AppStateX<T extends StatefulWidget> extends _AppState<T>
682687
actions: _actions ?? onActions(),
683688
restorationScopeId: _restorationScopeId ?? onRestorationScopeId(),
684689
scrollBehavior: _scrollBehavior ?? onScrollBehavior(),
690+
themeAnimationStyle:
691+
_themeAnimationStyle ?? onThemeAnimationStyle(),
685692
);
686693
}
687694
}
@@ -912,6 +919,7 @@ abstract class _AppState<T extends StatefulWidget> extends s.AppStateX<T> {
912919
this.inActions,
913920
this.inRestorationScopeId,
914921
this.inScrollBehavior,
922+
this.inThemeAnimationStyle,
915923
// }) : _statesRouteObserver = StatesRouteObserver(),
916924
}) : super(controller: controller) {
917925
// Listen to the device's connectivity.
@@ -1121,6 +1129,7 @@ abstract class _AppState<T extends StatefulWidget> extends s.AppStateX<T> {
11211129
Map<Type, Action<Intent>>? _actions;
11221130
String? _restorationScopeId;
11231131
ScrollBehavior? _scrollBehavior;
1132+
AnimationStyle? _themeAnimationStyle;
11241133

11251134
/// Used to complete asynchronous operations
11261135
Future<bool> onInitAsync() async => await inInitAsync?.call() ?? true;
@@ -1375,6 +1384,9 @@ abstract class _AppState<T extends StatefulWidget> extends s.AppStateX<T> {
13751384
/// Returns the App's [ScrollBehavior] if any.
13761385
ScrollBehavior? onScrollBehavior() => inScrollBehavior?.call();
13771386

1387+
/// Used to override the theme animation curve and duration.
1388+
AnimationStyle? onThemeAnimationStyle() => inThemeAnimationStyle?.call();
1389+
13781390
/// Perform asynchronous operations
13791391
final Future<bool> Function()? inInitAsync;
13801392

@@ -1499,6 +1511,9 @@ abstract class _AppState<T extends StatefulWidget> extends s.AppStateX<T> {
14991511
/// Returns the App's [ScrollBehavior] if any.
15001512
final ScrollBehavior? Function()? inScrollBehavior;
15011513

1514+
/// Used to override the theme animation curve and duration.
1515+
final AnimationStyle? Function()? inThemeAnimationStyle;
1516+
15021517
/// Returns the App's 'Async Error Handler' if any.
15031518
final void Function(Object error)? inAsyncError;
15041519

@@ -2017,6 +2032,7 @@ class AppState<T extends StatefulWidget> extends AppStateX<T> {
20172032
super.actions,
20182033
super.restorationScopeId,
20192034
super.scrollBehavior,
2035+
super.themeAnimationStyle,
20202036
super.errorHandler,
20212037
super.errorScreen,
20222038
super.errorReport,
@@ -2065,5 +2081,6 @@ class AppState<T extends StatefulWidget> extends AppStateX<T> {
20652081
super.inActions,
20662082
super.inRestorationScopeId,
20672083
super.inScrollBehavior,
2084+
super.inThemeAnimationStyle,
20682085
});
20692086
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ homepage: https://www.andrioussolutions.com
44
repository: https://github.com/AndriousSolutions/fluttery_framework
55
issue_tracker: https://github.com/AndriousSolutions/fluttery_framework/issues
66

7-
version: 5.4.2+1
7+
version: 5.5.0
88

99
environment:
1010
sdk: '>=3.0.0 <4.0.0'

0 commit comments

Comments
 (0)