Skip to content

Commit

Permalink
Bump version to 2.0.0 and updated Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
aqwert committed Jun 8, 2022
1 parent dd952a5 commit 4daa95e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 45 deletions.
20 changes: 16 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [2.0.0] - June 08, 2022

#### (Flutter version support: v3.0.0)

- Compatible with Flutter 3.0 and above.
- Added new fields to platform widgets.
- Removed deprecated `PlatformButton` since the underlying material `FlatButton` and `RaisedButton` are being removed in flutter ^3.1.0
- Removed required constraint from the `label` field on the `PopupMenuOption` class. (thanks AkshatBaranwal)
- Removed deprecated `brightness` field from `MaterialAppBarData` as it is deprecated in the framework. Use systemOverlayStyle instead
- Removed deprecated `textTheme` field from `MaterialAppBarData` as it is deprecated in the framework. Use toolbarTextStyle and titleTextStyle instead
- Removed deprecated `backwardsCompatibility` field from `MaterialAppBarData` as it is deprecated in the framework.

## [1.20.0] - February 12, 2022

#### (Flutter version support: v2.10.0)
Expand Down Expand Up @@ -58,13 +70,13 @@
#### (Flutter version support: v2.2)

- Added extra fields from Flutter 2.2
- Removed deprecated field maxLengthEnforced from PlatformtextField. use maxLengthEnforcement instead
- Removed deprecated field maxLengthEnforced from PlatformTextField. use maxLengthEnforcement instead

## [1.8.0] - May 20, 2021

#### (Flutter version support: v2.2)

- Add `platformPage` to use as part of Navigator's 2.0 implemention
- Add `platformPage` to use as part of Navigator's 2.0 implementation
- Add `makeCupertinoDecorationNull` to `PlatformtextField` so cupertino's decoration field can be set to null rather than any default style. the default kDefaultRoundedBorderDecoration is now not private
- Fix issue where `PlatformTabController` was not notifying when index changed.

Expand Down Expand Up @@ -141,7 +153,7 @@
#### (Flutter version support: v1.22.0 - v1.22.4)

- Adds `materialBuilder` and `cupertinoBuilder` as alternatives to `material` and `cupertino` on `PlatformTabScaffold` so that the widgets can change properties on tab index change. see example/lib/tabbed/dynamicTabbedPage.dart.
- Adds new polatform icons, thumb up and down and fix the star icon (thanks DFelten)
- Adds new platform icons, thumb up and down and fix the star icon (thanks DFelten)

## [0.71.0] - November 08, 2020

Expand All @@ -168,7 +180,7 @@
#### (Flutter version support: v1.20.0 - v1.20.2)

- Added const to icons for treeshaking (thanks sck-v)
- Added contributers to ReadMe
- Added contributors to ReadMe

## [0.60.1] - August 05, 2020

Expand Down
43 changes: 3 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ Each `PlatformWidget` provides common properties directly as constructor argumen
- [PlatformText](https://github.com/stryder-dev/flutter_platform_widgets/blob/master/README.md#platformtext)
- [PlatformSwitch](https://github.com/stryder-dev/flutter_platform_widgets/blob/master/README.md#platformswitch)
- [PlatformSlider](https://github.com/stryder-dev/flutter_platform_widgets/blob/master/README.md#platformslider)
- [PlatformTextField](https://github.com/stryder-dev/flutter_platform_widgets/blob/master/README.md#platformtextfield)
- [PlatformButton](https://github.com/stryder-dev/flutter_platform_widgets/blob/master/README.md#platformbutton)
- [PlatformTextField](https://github.com/stryder-dev/flutter_platform_widgets/blob/master/README.md#platformtextfield
- [PlatformIconButton](https://github.com/stryder-dev/flutter_platform_widgets/blob/master/README.md#platformiconbutton)
- [PlatformApp](https://github.com/stryder-dev/flutter_platform_widgets/blob/master/README.md#platformapp)
- [PlatformScaffold](https://github.com/stryder-dev/flutter_platform_widgets/blob/master/README.md#platformscaffold)
Expand Down Expand Up @@ -142,43 +141,6 @@ return PlatformTextField(
);
```

## PlatformButton

A button that will render a `RaisedButton` or `FlatButton` for material or a `CupertinoButton` for cupertino.

```dart
return PlatformButton(
onPressed: () => print('send'),
child: PlatformText('Send'),
);
```

#### Enhance

Extend with `PlatformBuilder` for material or cupertino.

```dart
return PlatformButton(
onPressed: () => print('send'),
child: PlatformText('Send'),
material: (_, __) => MaterialRaisedButtonData(...),
cupertino: (_, __) => CupertinoButtonData(...)
);
```

> Note: For material you can use the `FlatButton` instead. To do this use the `MaterialFlatButtonData` on the `materialFlat` argument.
> Note: For cupertino you can use the `CupertinoButton.filled` instead. To do this use the `CupertinoFilledButtonData` on the `cupertinoFilled` argument.
```dart
return PlatformButton(
onPressed: () => print('send'),
child: PlatformText('Send'),
materialFlat: (_, __) => MaterialFlatButtonData(),
cupertinoFilled: (_, __) => CupertinoFilledButtonData(),
);
```

## PlatformIconButton

A clickable (tappable) button with an icon. Uses `IconButton` for material or `CupertinoButton` for cupertino.
Expand Down Expand Up @@ -494,7 +456,7 @@ showDialog(

## PlatformDialogAction

The DialogAction widget is used to describe the set of buttons on the AlertDialog. Uses `TextButton` for material or `CupertinoDialogAction` for cupertino. If you want to use `FlatButton` for material which is the default pre v1.9.0 then set `legacyMaterialDialogActionButtons` setting on `PlatformProvider`
The DialogAction widget is used to describe the set of buttons on the AlertDialog. Uses `TextButton` for material or `CupertinoDialogAction` for cupertino.

```dart
PlatformDialogAction(
Expand Down Expand Up @@ -785,6 +747,7 @@ Special thanks for everyone that have contributed to this project...
| [![](https://avatars1.githubusercontent.com/u/35923031?s=40&v=4)](https://github.com/in74mz) | [in74mz](https://github.com/in74mz) |
| [![](https://avatars0.githubusercontent.com/u/1169185?s=40&v=4)](https://github.com/DFelten) | [Daniel Felten](https://github.com/DFelten) |
| [![](https://avatars0.githubusercontent.com/u/1911919?s=40&v=4)](https://github.com/hanskokx) | [Hans Kokx](https://github.com/hanskokx) |
| [![](https://avatars.githubusercontent.com/u/31817177?v=4)](https://github.com/AkshatBaranwal) | [AkshatBaranwal](https://github.com/AkshatBaranwal) |

# Acknowledgements

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_platform_widgets
description: Simplifying the use of both Material and Cupertino widgets with a single widget
version: 1.20.0
version: 2.0.0
homepage: https://github.com/stryder-dev/flutter_platform_widgets

environment:
Expand Down

0 comments on commit 4daa95e

Please sign in to comment.