Skip to content

Commit

Permalink
4.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Drawner committed Nov 26, 2023
1 parent d4b0e74 commit b9d27da
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@

## 4.8.4
November 26, 2023
- Allow for additional controllers to be added in a previous initAsync()
while (cnt < controllerList.length) {

## 4.8.3
November 26, 2023
- Allow additional controllers to call their initState() if added in a previous initState() call
- Allow for additional controllers to call their initState() if added in a previous initState() call
while (cnt < controllerList.length) {
- Container() to SizedBox() in splash_screen.dart

Expand Down
10 changes: 7 additions & 3 deletions lib/state_extended.dart
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,12 @@ abstract class StateX<T extends StatefulWidget> extends State<StatefulWidget>
// No 'setState()' functions are allowed to fully function at this point.
_setStateAllowed = false;

for (final con in controllerList) {
//
int cnt = 0;
StateXController con;

// While loop the active list itself so to allow for additional controllers to be added in a previous initAsync()
while (cnt < controllerList.length) {
con = controllerList[cnt];
try {
final init = await con.initAsync();
if (!init) {
Expand Down Expand Up @@ -263,7 +267,7 @@ abstract class StateX<T extends StatefulWidget> extends State<StatefulWidget>
int cnt = 0;
StateXController con;

// Loop the active list itself the so additional controllers can be added in a previous initState()
// While loop the active list itself the so additional controllers can be added in a previous initState()
while (cnt < controllerList.length) {
con = controllerList[cnt];
// Add this to the _StateSets Map
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.3
version: 4.8.4
homepage: https://www.andrioussolutions.com
repository: https://github.com/AndriousSolutions/state_extended

Expand Down

0 comments on commit b9d27da

Please sign in to comment.