Skip to content

Commit

Permalink
deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecoomber committed Jun 4, 2024
1 parent 2a45bfe commit 3c129fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/components/dropdown/dropdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class ZetaDropdown<T> extends StatefulWidget {
const ZetaDropdown({
required this.items,
this.onChange,
@Deprecated('disabled is deprecated. To disable the dropdown, set onChange to null') bool disabled = false,
this.value,
this.rounded = true,
this.type = ZetaDropdownMenuType.standard,
Expand Down
1 change: 1 addition & 0 deletions lib/src/components/pagination/pagination.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class ZetaPagination extends StatefulWidget {
this.onChange,
this.currentPage = 1,
this.rounded = true,
@Deprecated("To disable the pagination, set 'onChange' to null") bool disabled = false,
super.key,
}) : assert(
pages > 0,
Expand Down
1 change: 1 addition & 0 deletions lib/src/components/search_bar/search_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ZetaSearchBar extends StatefulWidget {
this.disabled = false,
this.showLeadingIcon = true,
this.showSpeechToText = true,
@Deprecated("Use 'disabled' instead") bool enabled = true,
});

/// Determines the size of the input field.
Expand Down

0 comments on commit 3c129fe

Please sign in to comment.