Skip to content

Commit 74d634b

Browse files
committed
fix: enabled is not null with default at true on DecoratedPlatformTextfield
1 parent 1f78d58 commit 74d634b

File tree

3 files changed

+9
-40
lines changed

3 files changed

+9
-40
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.0
2+
- Fix an error on `enabled` Textfield in the `DecoratedPlatformTextfield`
3+
- Update `flutter_platform_widgets` to `6.0.2`
4+
15
## 0.7.4
26
- Improved `DialogHandler` API - you can now specify the return type, e.g. `final result = await DialogHandler.showWidgetDialog<bool>(...)`
37
- Add `PlatformSnackApp.router` and `CupertinoSnackApp.router` to allow for using the `Router` API

lib/src/platform/decorated_platform_textfield.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class DecoratedPlatformTextField extends StatelessWidget {
214214
///
215215
/// If non-null this property overrides the [decoration]'s
216216
/// [InputDecoration.enabled] property.
217-
final bool? enabled;
217+
final bool enabled;
218218

219219
/// {@macro flutter.widgets.editableText.cursorWidth}
220220
final double cursorWidth;
@@ -412,7 +412,7 @@ class DecoratedPlatformTextField extends StatelessWidget {
412412
this.onSubmitted,
413413
this.onAppPrivateCommand,
414414
this.inputFormatters,
415-
this.enabled,
415+
this.enabled = true,
416416
this.cursorWidth = 2.0,
417417
this.cursorHeight,
418418
this.cursorRadius,

pubspec.yaml

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,21 @@
11
name: enough_platform_widgets
22
description: Useful platform aware widgets to bring a Material app to Cupertino.
3-
version: 0.7.4
3+
version: 0.8.0
44
homepage: https://github.com/Enough-Software/enough_platform_widgets
55

66
environment:
77
sdk: ">=2.17.0 <4.0.0"
8-
flutter: ">=3.0.0"
8+
flutter: ">=3.16.0"
99

1010
dependencies:
1111
cupertino_stepper: ^0.2.1
1212
cupertino_progress_bar: ^0.2.0
1313
flutter:
1414
sdk: flutter
15-
flutter_platform_widgets: ^3.3.5
15+
flutter_platform_widgets: ^6.0.2
1616

1717
dev_dependencies:
1818
flutter_test:
1919
sdk: flutter
2020

21-
# For information on the generic Dart part of this file, see the
22-
# following page: https://dart.dev/tools/pub/pubspec
23-
24-
# The following section is specific to Flutter.
2521
flutter:
26-
27-
# To add assets to your package, add an assets section, like this:
28-
# assets:
29-
# - images/a_dot_burr.jpeg
30-
# - images/a_dot_ham.jpeg
31-
#
32-
# For details regarding assets in packages, see
33-
# https://flutter.dev/assets-and-images/#from-packages
34-
#
35-
# An image asset can refer to one or more resolution-specific "variants", see
36-
# https://flutter.dev/assets-and-images/#resolution-aware.
37-
38-
# To add custom fonts to your package, add a fonts section here,
39-
# in this "flutter" section. Each entry in this list should have a
40-
# "family" key with the font family name, and a "fonts" key with a
41-
# list giving the asset and other descriptors for the font. For
42-
# example:
43-
# fonts:
44-
# - family: Schyler
45-
# fonts:
46-
# - asset: fonts/Schyler-Regular.ttf
47-
# - asset: fonts/Schyler-Italic.ttf
48-
# style: italic
49-
# - family: Trajan Pro
50-
# fonts:
51-
# - asset: fonts/TrajanPro.ttf
52-
# - asset: fonts/TrajanPro_Bold.ttf
53-
# weight: 700
54-
#
55-
# For details regarding fonts in packages, see
56-
# https://flutter.dev/custom-fonts/#from-packages

0 commit comments

Comments
 (0)