Skip to content

Commit

Permalink
Remove previosouly deprecated fields
Browse files Browse the repository at this point in the history
- `EditableComboboxFormField.value`. Use `EditableComboboxFormField.initialValue` instead
  - `DatePicker.startYear`. Use `DatePicker.startDate` instead
  - `DatePicker.endYear`. Use `DatePicker.endDate` instead
  - `TextButton`. Use `HyperlinkButton` instead
  - `TabView.wheelScroll`. It is no longer used
  - `ThemeData`. Use `FluentThemeData` instead
  • Loading branch information
bdlukaa committed Jul 7, 2023
1 parent c1cfe49 commit ee60164
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 23 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@
- `DatePicker` and `TimePicker` are correctly fit into the navigator bounds ([711390](https://github.com/bdlukaa/fluent_ui/commit/711390d7bcc8f17ced8f62130875e13097dd3a22))
- Add `TreeView.gesturesBuilder` and `TreeViewItem.gestures` ([#851](https://github.com/bdlukaa/fluent_ui/issues/851))
- Improved overall `Semantics`. Now, not every input is treated as a button ([2fee45](https://github.com/bdlukaa/fluent_ui/commit/2fee459de612fd562c18ca1924ba835ebb665d7e))
- Deprecated all mobile widgets: `BottomSheet`, `Snackbar`, `Chip` and `PillButtonBar` - and all their related widgets.
- Deprecated all mobile widgets: `BottomSheet`, `Snackbar`, `Chip` and `PillButtonBar` - and all their related widgets. ([c1cfe491](https://github.com/bdlukaa/fluent_ui/commit/c1cfe491ba0388af540803c8e4a0bb9a049a873f))
- Removed previously deprecated fields:
- `EditableComboboxFormField.value`. Use `EditableComboboxFormField.initialValue` instead
- `DatePicker.startYear`. Use `DatePicker.startDate` instead
- `DatePicker.endYear`. Use `DatePicker.endDate` instead
- `TextButton`. Use `HyperlinkButton` instead
- `TabView.wheelScroll`. It is no longer used
- `ThemeData`. Use `FluentThemeData` instead

## 4.6.2

Expand Down
1 change: 0 additions & 1 deletion lib/src/controls/form/editable_combo_box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ class EditableComboboxFormField<T> extends FormField<T> {
required List<ComboBoxItem<T>>? items,
ComboBoxBuilder? selectedItemBuilder,
super.initialValue,
@Deprecated('Use initialValue instead') T? value,
Widget? placeholder,
Widget? disabledPlaceholder,
required this.onChanged,
Expand Down
10 changes: 2 additions & 8 deletions lib/src/controls/form/pickers/date_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,14 @@ class DatePicker extends StatefulWidget {
this.showYear = true,
DateTime? startDate,
DateTime? endDate,
@Deprecated('Use startDate instead') int? startYear,
@Deprecated('Use endDate instead') int? endYear,
this.contentPadding = kPickerContentPadding,
this.popupHeight = kPickerPopupHeight,
this.focusNode,
this.autofocus = false,
this.locale,
this.fieldOrder,
}) : startDate = startDate == null && startYear != null
? DateTime(startYear)
: startDate ?? DateTime.now().subtract(kYearDuration * 100),
endDate = endDate == null && endYear != null
? DateTime(endYear)
: endDate ?? DateTime.now().add(kYearDuration * 25);
}) : startDate = startDate ?? DateTime.now().subtract(kYearDuration * 100),
endDate = endDate ?? DateTime.now().add(kYearDuration * 25);

/// The current date selected date.
///
Expand Down
3 changes: 0 additions & 3 deletions lib/src/controls/inputs/buttons/hyperlink_button.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import 'package:fluent_ui/fluent_ui.dart';

@Deprecated('Deprecated in 4.4.3. Use HypelinkButton instead')
typedef TextButton = HyperlinkButton;

/// A borderless button with mainly text-based content
///
/// {@macro fluent_ui.buttons.base}
Expand Down
7 changes: 0 additions & 7 deletions lib/src/controls/navigation/tab_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ class TabView extends StatefulWidget {
this.header,
this.footer,
this.closeDelayDuration = const Duration(milliseconds: 400),
@Deprecated(
'This property is no longer used and will be removed in the next major release.')
this.wheelScroll = false,
});

/// The index of the tab to be displayed
Expand Down Expand Up @@ -128,10 +125,6 @@ class TabView extends StatefulWidget {
/// If null, a [ScrollPosController] is created internally.
final ScrollPosController? scrollController;

@Deprecated('This property is no longer used and will be removed in the'
' next major release.')
final bool wheelScroll;

/// Indicates the close button visibility mode
final CloseButtonVisibilityMode closeButtonVisibility;

Expand Down
3 changes: 0 additions & 3 deletions lib/src/styles/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@ extension BrightnessExtension on Brightness {

const standardCurve = Curves.easeInOut;

@Deprecated('ThemeData is deprecated. Use FluentThemeData instead')
typedef ThemeData = FluentThemeData;

/// Defines the default theme for a [FluentApp] or [FluentTheme].
@immutable
class FluentThemeData with Diagnosticable {
Expand Down

0 comments on commit ee60164

Please sign in to comment.