Merge branch 'master' of https://github.com/jamesblasco/modal_bottom_sheet
Showing
2 changed files
with
26 additions
and
3 deletions
| 1 | -TODO: Add your license here. | 1 | +MIT License |
| 2 | + | ||
| 3 | +Copyright (c) 2020 Jaime Blasco | ||
| 4 | + | ||
| 5 | +Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 6 | +of this software and associated documentation files (the "Software"), to deal | ||
| 7 | +in the Software without restriction, including without limitation the rights | ||
| 8 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 9 | +copies of the Software, and to permit persons to whom the Software is | ||
| 10 | +furnished to do so, subject to the following conditions: | ||
| 11 | + | ||
| 12 | +The above copyright notice and this permission notice shall be included in all | ||
| 13 | +copies or substantial portions of the Software. | ||
| 14 | + | ||
| 15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 21 | +SOFTWARE. |
| @@ -86,6 +86,7 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | @@ -86,6 +86,7 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | ||
| 86 | </details> | 86 | </details> |
| 87 | 87 | ||
| 88 | <details><summary> | 88 | <details><summary> |
| 89 | + | ||
| 89 | 2. | 90 | 2. |
| 90 | Using `onGenerateRoute` parameter of `MaterialApp`, `CupertinoApp` or `Navigator` | 91 | Using `onGenerateRoute` parameter of `MaterialApp`, `CupertinoApp` or `Navigator` |
| 91 | </summary> | 92 | </summary> |
| @@ -107,6 +108,7 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | @@ -107,6 +108,7 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | ||
| 107 | </details> | 108 | </details> |
| 108 | 109 | ||
| 109 | <details><summary> | 110 | <details><summary> |
| 111 | + | ||
| 110 | 3. | 112 | 3. |
| 111 | Using `pageRouteBuilder` parameter of `WidgetApp` | 113 | Using `pageRouteBuilder` parameter of `WidgetApp` |
| 112 | </summary> | 114 | </summary> |
| @@ -119,12 +121,13 @@ pageRouteBuilder: <T>(RouteSettings settings, WidgetBuilder builder) => Material | @@ -119,12 +121,13 @@ pageRouteBuilder: <T>(RouteSettings settings, WidgetBuilder builder) => Material | ||
| 119 | 121 | ||
| 120 | <details> | 122 | <details> |
| 121 | <summary> | 123 | <summary> |
| 124 | + | ||
| 122 | 4. | 125 | 4. |
| 123 | Using `routes` parameter from `MaterialApp` or `CupertinoApp` | 126 | Using `routes` parameter from `MaterialApp` or `CupertinoApp` |
| 124 | </summary> | 127 | </summary> |
| 125 | 128 | ||
| 126 | -Unfortunately this routes are `MaterialPageRoute` and `CupertinoPageRoute` respectively and cannot be changes. | ||
| 127 | -You can change the way you call the previous route with one of the previous methods or try option 2 | 129 | +Unfortunately this parameter uses `MaterialPageRoute` and `CupertinoPageRoute` respectively and cannot be changed. |
| 130 | +You can modify the way you call the previous route with one of the previous methods or try option 2 | ||
| 128 | 131 | ||
| 129 | </details> | 132 | </details> |
| 130 | 133 |
-
Please register or login to post a comment