Skip to content

Commit

Permalink
Merge pull request #12 from Iconica-Development/bugfix/remove_partOfG…
Browse files Browse the repository at this point in the history
…roup

fix: remove partOfGroup parameter from controlwrapper function
  • Loading branch information
JacquesDIconica authored Aug 29, 2024
2 parents 813fd43 + fe62c29 commit 0438e06
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.0.0

* Remove partOfGroup from controllwrapper parameter.

## 4.0.0

* Added theme to text components
Expand Down
3 changes: 1 addition & 2 deletions lib/src/ui/input_field_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class InputFieldGenerator extends StatefulWidget {
});

final List<Control> settings;
final Widget Function(Widget child, Control setting, {bool partOfGroup})?
controlWrapper;
final Widget Function(Widget child, Control setting)? controlWrapper;
final Widget Function(Widget child, Control setting)? groupWrapper;
final int index;
final Function(void Function()) onUpdate;
Expand Down
6 changes: 2 additions & 4 deletions lib/src/ui/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ abstract class SettingsPage extends StatefulWidget {

factory SettingsPage.device({
required List<Control> settings,
Widget Function(Widget child, Control setting, {bool partOfGroup})?
controlWrapper,
Widget Function(Widget child, Control setting)? controlWrapper,
Widget Function(Widget child, Control setting)? groupWrapper,
bool loadFromPrefs = true,
Future<void> Function(List<Control>)? onSave,
Expand All @@ -33,8 +32,7 @@ abstract class SettingsPage extends StatefulWidget {
);

final List<Control> settings;
final Widget Function(Widget child, Control setting, {bool partOfGroup})?
controlWrapper;
final Widget Function(Widget child, Control setting)? controlWrapper;
final Widget Function(Widget child, Control setting)? groupWrapper;
}

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: flutter_settings
description: "Iconica Flutter Settings component"
version: 4.0.0
version: 5.0.0

publish_to: "none"

Expand Down

0 comments on commit 0438e06

Please sign in to comment.