Skip to content

Commit

Permalink
4.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Drawner committed Oct 23, 2023
1 parent 9cd6644 commit 5f7c997
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

## 4.8.1
October 23, 2023
- (state != null && state is StateX) remove necessary cast

## 4.8.0
October 23, 2023
- State? to StateX? for getter startState & endState
Expand Down
4 changes: 2 additions & 2 deletions lib/state_extended.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ mixin _MapOfStates on State {
StateXController? controller;
final state = startState;
if (state != null) {
controller = (state as StateX).controller;
controller = state.controller;
}
return controller;
}
Expand Down Expand Up @@ -2483,7 +2483,7 @@ abstract class AppStateX<T extends StatefulWidget> extends StateX<T>
// Possibly the error occurred there.
final state = endState;

if (state != null && state is StateX) {
if (state != null) {
try {
//
bool caught = false;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: state_extended
description: This class extends the capabilities of Flutter's State class and includes a controller.
version: 4.8.0
version: 4.8.1
homepage: https://www.andrioussolutions.com
repository: https://github.com/AndriousSolutions/state_extended

Expand Down

0 comments on commit 5f7c997

Please sign in to comment.