You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure to check out [examples](https://github.com/) for more details.
15
+
Make sure to check out [examples](https://github.com/4-alok/draggable_home/blob/main/example/lib/main.dart) for more details.
18
16
19
17
### Installation
20
18
21
19
Add the following line to `pubspec.yaml`:
22
20
23
21
```yaml
24
22
dependencies:
25
-
draggable_home: ^1.0.0
23
+
draggable_home: ^1.0.2
26
24
```
27
25
28
26
### Basic setup
29
27
30
-
*The complete example is available [here](https://github.com/).*
28
+
*The complete example is available [here](https://github.com/4-alok/draggable_home/blob/main/example/lib/main.dart).*
31
29
32
30
**DraggableHome** requires you to provide `title`, `headerWidget` and `body`:
33
31
* `title` widget is basically for title in AppBar. For no title in appbar, simply put an empty Contnainer.
@@ -61,12 +59,17 @@ There are several options that allow for more control:
61
59
| `centerTitle` | Allows toggling of title from the center. By default title is in the center.|
62
60
| `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** |
63
61
| `headerWidget` | A widget to display Header above body. |
62
+
|`alwaysShowLeadingAndAction`| This make Leading and Action always visible. Default value is false. |
63
+
|`headerBottomBar`| AppBar or toolBar like widget just above the body. |
64
64
| `backgroundColor` | The color of the Material widget that underlies the entire DraggableHome body. |
65
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**.|
66
66
| `fullyStretchable` | Allows toggling of fully expand draggability of the DraggableHome. Set this to true to allow the user to fully expand the header. |
67
67
| `stretchTriggerOffset` | The offset of overscroll required to fully expand the header.|
68
68
| `expandedBody` | A widget to display when fully expanded as header or expandedBody above body. |
69
69
| `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** |
70
+
| `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**.|
72
+
|`bottomNavigationBar` | Snack bars slide from underneath the bottom navigation bar while bottom sheets are stacked on top. |
70
73
| `floatingActionButton` | A floating action button is a circular icon button that hovers over content to promote a primary action in the application. |
71
74
| `floatingActionButtonLocation` | An object that defines a position for the FloatingActionButton based on the Scaffold's ScaffoldPrelayoutGeometry.|
72
75
| `floatingActionButtonAnimator` | Provider of animations to move the FloatingActionButton between FloatingActionButtonLocations. |
@@ -87,7 +90,9 @@ DraggableHome(
87
90
88
91
// shrinkWrap true required for ListView.builder()
89
92
// disable the scroll for any verically scrollable widget
93
+
// provide top padding 0 to fix extra space in listView
0 commit comments