Skip to content

Commit 9350281

Browse files
authored
Merge pull request #7 from ghpranav/main
Update documentation
2 parents fb71118 + 29e3a3e commit 9350281

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
## 1.0.2
22

3-
* Added headerBottomBar support
4-
* Added bottomSheet support
5-
* AddedbottomNavigationBar support
3+
- Added headerBottomBar support
4+
- Added bottomSheet support
5+
- Added bottomNavigationBar support
66

77
## v1.0.1
88

9-
* Added centerTitle
9+
- Added centerTitle
1010

1111
## v1.0.0
1212

13-
* Sound null-safe release.
13+
- Sound null-safe release.
1414

1515
## v0.0.1
1616

17-
* Initial development release.
17+
- Initial development release.

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Draggable Home
22

3-
A draggable Flutter widget that makes implementing a Sliding up and fully-stretchable much easier! Based on the Scaffold and Sliver.
3+
A draggable Flutter widget that makes implementing a Sliding up and fully-stretchable much easier! Based on the Scaffold and Sliver.
44

55
<br>
66
<p>
@@ -28,9 +28,9 @@ dependencies:
2828
*The complete example is available [here](https://github.com/4-alok/draggable_home/blob/main/example/lib/main.dart).*
2929
3030
**DraggableHome** requires you to provide `title`, `headerWidget` and `body`:
31-
* `title` widget is basically for title in AppBar. For no title in appbar, simply put an empty Contnainer.
32-
* `headerWidget` is the expanded widget just above body when not fully expanded.
33-
* `body` is in the form of Column which requires list of widget or a widget. Do not add any verically scrollable widge or you may just disable the scroll.
31+
* `title` widget is basically for a title in the AppBar. For no title in AppBar, simply pass an empty Container.
32+
* `headerWidget` is the expanded widget just above the body when not fully expanded.
33+
* `body` is in the form of Column which requires a list of widget or a widget. Do not add any vertically scrollable widget or you may just disable the scroll.
3434
```dart
3535
physics: const NeverScrollableScrollPhysics()
3636
```
@@ -39,7 +39,7 @@ dependencies:
3939
Sample code
4040
```dart
4141
DraggableHome(
42-
title: Text("Ttitle"),
42+
title: Text("Title"),
4343
headerWidget: headerWidget(),
4444
body: [
4545
Container(...),
@@ -56,19 +56,19 @@ There are several options that allow for more control:
5656
| `leading` | A widget to display before the toolbar's title. |
5757
| `action` | A list of Widgets to display in a row after the title widget. |
5858
| `drawer` | Drawers are typically used with the Scaffold.drawer property. |
59-
| `centerTitle` | Allows toggling of title from the center. By default title is in the center.|
59+
| `centerTitle` | Allows toggling of title from the center. By default, title is in the center.|
6060
| `headerExpandedHeight` | Height of the header widget. The height is a double between 0.0 and 1.0. The default value of height is 0.35 and should be less than **stretchMaxHeight** |
61-
| `headerWidget` | A widget to display Header above body. |
62-
|`alwaysShowLeadingAndAction`| This make Leading and Action always visible. Default value is false. |
61+
| `headerWidget` | A widget to display Header above the body. |
62+
|`alwaysShowLeadingAndAction`| This makes Leading and Action always visible. Default value is false. |
6363
|`headerBottomBar`| AppBar or toolBar like widget just above the body. |
6464
| `backgroundColor` | The color of the Material widget that underlies the entire DraggableHome body. |
65-
| `curvedBodyRadius` | Creates a border top left and top right radius of body, Default radius of the body is 20.0. For no radius simply set value to **0**.|
65+
| `curvedBodyRadius` | Creates a border top-left and top-right radius of body, Default radius of the body is 20.0. For no radius simply set the value to **0**.|
6666
| `fullyStretchable` | Allows toggling of fully expand draggability of the DraggableHome. Set this to true to allow the user to fully expand the header. |
6767
| `stretchTriggerOffset` | The offset of overscroll required to fully expand the header.|
68-
| `expandedBody` | A widget to display when fully expanded as header or expandedBody above body. |
68+
| `expandedBody` | A widget to display when fully expanded as header or expandedBody above the body. |
6969
| `stretchMaxHeight` | Height of the expandedBody widget. The height is a double between 0.0 and 0.95. The default value of height is 0.9 and should be greater than **headerExpandedHeight** |
7070
| `bottomSheet` | A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.|
71-
|`bottomNavigationBarHeight`| This is requires when using custom height to adjust body height. This make no effect on **bottomNavigationBar**.|
71+
|`bottomNavigationBarHeight`| This is required when using custom height to adjust body height. This makes no effect on **bottomNavigationBar**.|
7272
|`bottomNavigationBar` | Snack bars slide from underneath the bottom navigation bar while bottom sheets are stacked on top. |
7373
| `floatingActionButton` | A floating action button is a circular icon button that hovers over content to promote a primary action in the application. |
7474
| `floatingActionButtonLocation` | An object that defines a position for the FloatingActionButton based on the Scaffold's ScaffoldPrelayoutGeometry.|
@@ -83,13 +83,13 @@ There are several options that allow for more control:
8383

8484
```dart
8585
DraggableHome(
86-
title: Text("Ttitle"),
86+
title: Text("Title"),
8787
headerWidget: headerWidget(),
8888
body: [
8989
Container(...),
9090
9191
// shrinkWrap true required for ListView.builder()
92-
// disable the scroll for any verically scrollable widget
92+
// disable the scroll for any vertically scrollable widget
9393
// provide top padding 0 to fix extra space in listView
9494
ListView.builder(
9595
padding: EdgeInsets.only(top: 0),
@@ -125,21 +125,21 @@ DraggableHome(
125125

126126
## Contributions
127127

128-
Contributions are welcomed!
128+
Contributions are welcome!
129129

130-
If you feel that a hook is missing, feel free to open a pull-request.
130+
If you feel that a hook is missing, feel free to open a Pull Request.
131131

132-
For a custom-hook to be merged, you will need to do the following:
132+
For a custom hook to be merged, you will need to do the following:
133133

134-
- Describe the use-case.
134+
- Describe the use case.
135135

136136
- Open an issue explaining why we need this hook, how to use it, ...
137-
This is important as a hook will not get merged if the hook doens't appeal to
137+
This is important as a hook will not get merged if the hook doesn't appeal to
138138
a large number of people.
139139

140140
- If your hook is rejected, don't worry! A rejection doesn't mean that it won't
141-
be merged later in the future if more people shows an interest in it.
142-
In the mean-time, feel free to publish your hook as a package on https://pub.dev.
141+
be merged later in the future if more people show an interest in it.
142+
In the meantime, feel free to publish your hook as a package on https://pub.dev.
143143

144-
- A hook will not be merged unles fully tested, to avoid breaking it inadvertendly
144+
- A hook will not be merged unless fully tested, to avoid breaking it inadvertently
145145
in the future.

0 commit comments

Comments
 (0)