diff --git a/CHANGELOG.md b/CHANGELOG.md index 03c8f44..01c5172 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.6.1 +* **Migrate** to a new repository name + ## 0.6.0 * **Various** fixes and improvements * **Migrated** to Sound null safety diff --git a/README.md b/README.md index 31b1bed..1870f43 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ A widget that can be dragged and scrolled in a single gesture and snapped to a list of extents. - - Example of a SlidingSheet + + Example of a SlidingSheet -Click [here](https://github.com/flutterwtf/sliding_sheet/blob/master/example/lib/main.dart) to view the full example. +Click [here](https://github.com/flutterwtf/wtf_sliding_sheet/blob/master/example/lib/main.dart) to view the full example. The package is a fork of [this](https://github.com/tchigher/sliding-sheet) repository. @@ -16,16 +16,16 @@ Add it to your `pubspec.yaml` file: ```yaml dependencies: - wtf_sliding_sheet: ^0.6.0 + wtf_sliding_sheet: ^0.6.1 ``` Install packages from the command line ```shell -flutter packages get +flutter pub get ``` -If you like this package, consider supporting it by giving it a star on [GitHub](https://github.com/flutterwtf/sliding_sheet) and a like on [pub.dev](https://pub.dev/packages/wtf_sliding_sheet) :heart: +If you like this package, consider supporting it by giving it a star on [GitHub](https://github.com/flutterwtf/wtf_sliding_sheet) and a like on [pub.dev](https://pub.dev/packages/wtf_sliding_sheet) :heart: ## Usage @@ -79,7 +79,7 @@ Widget build(BuildContext context) { **Result:** -Example +Example ### As a BottomSheetDialog @@ -127,7 +127,7 @@ void showAsBottomSheet(BuildContext context) async { **Result:** -Example +Example ### Snapping @@ -142,9 +142,9 @@ positioning | Can be set to one of these three values: `SnapPositioning.relative onSnap | A callback function that gets invoked when the `SlidingSheet` snaps to an extent.

- SnapPositioning.relativeToAvailableSpace with a snap of 0.5 - SnapPositioning.relativeToSheetHeight with a snap of 0.5 - SnapPositioning.pixelOffset with a snap of 100 + SnapPositioning.relativeToAvailableSpace with a snap of 0.5 + SnapPositioning.relativeToSheetHeight with a snap of 0.5 + SnapPositioning.pixelOffset with a snap of 100

There are also some prebuild snaps you can facilitate to snap for example to headers or footers as shown in the example. @@ -238,7 +238,7 @@ Widget build(BuildContext context) { **Result:** -Simple header/footer example +Simple header/footer example ### ListViews and Columns @@ -275,8 +275,8 @@ return SheetListenerBuilder( **Result:** -Example of Material Effects +Example of Material Effects -The [example](https://github.com/flutterwtf/sliding_sheet/blob/master/example/lib/main.dart) for instance decreases the corner radius of the `SlidingSheet` as it gets dragged to the top and increases the headers top padding by the status bar height. Also, when content gets scrolled under the header it elevates. +The [example](https://github.com/flutterwtf/wtf_sliding_sheet/blob/master/example/lib/main.dart) for instance decreases the corner radius of the `SlidingSheet` as it gets dragged to the top and increases the headers top padding by the status bar height. Also, when content gets scrolled under the header it elevates. Because these are common Material behaviors, `SlidingSheet` supports those out of the box, which can be achieved by setting the `avoidStatusBar` field to `true`, `cornerRadiusOnFullscreen` to `0` and `liftOnScrollHeaderElevation` to the elevation. diff --git a/example/pubspec.lock b/example/pubspec.lock index d28c723..2c42ef1 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -214,7 +214,7 @@ packages: path: ".." relative: true source: path - version: "0.6.0" + version: "0.6.1" sdks: dart: ">=2.19.0 <3.0.0" flutter: ">=2.5.0" diff --git a/pubspec.yaml b/pubspec.yaml index 6165de5..7a95ac8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,8 @@ name: wtf_sliding_sheet description: A widget that can be dragged and scrolled in a single gesture and snapped to a list of extents. -version: 0.6.0 -homepage: https://github.com/flutterwtf/sliding_sheet -repository: https://github.com/flutterwtf/sliding_sheet +version: 0.6.1 +homepage: https://pub.dev/packages/wtf_sliding_sheet +repository: https://github.com/flutterwtf/wtf_sliding_sheet environment: sdk: '>=2.17.0 <3.0.0'