Skip to content

Commit a8e0044

Browse files
committed
update dodcs
1 parent 6cc3b4a commit a8e0044

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

.pubignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ build/
3131
coverage/
3232

3333
test/
34-
example/ios_route
35-
example/simple
36-
example/outlet
34+
example/ios_route/
35+
example/simple/
36+
example/outlet/
3737

3838
assets/images/
3939
assets/svgs/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.3
2+
3+
* Fix documentation
4+
15
## 1.0.2
26

37
* Fix dynamic file notion

README.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ Routefly is a folder-based route manager inspired by NextJS and created by the F
66

77
**Example:**
88

9-
- `/lib/app/dashboard/dashboard_page.dart` => `/dashboard`
10-
- `/lib/app/users/users_page.dart` => `/users`
11-
- `/lib/app/users/[id]_page.dart` => `/users/2`
129

13-
![Logo](https://github.com/Flutterando/routefly/blob/main/assets/images/nested_navigation.gif?raw=true)
10+
![Logo](https://github.com/Flutterando/routefly/blob/main/assets/images/routefly_scheme.png?raw=true)
1411

1512
## Installation and Initialization
1613

@@ -32,7 +29,7 @@ class MyApp extends StatelessWidget {
3229
Widget build(BuildContext context) {
3330
return MaterialApp.router(
3431
routerDelegate: Routefly.routerConfig(
35-
routes: routes,
32+
routes: routes, // GENERATED
3633
),
3734
);
3835
}
@@ -71,8 +68,8 @@ A route group can be created by wrapping a folder's name in parenthesis: `(folde
7168
.
7269
└── app/
7370
├── (product)/
74-
└── home/
75-
└── home_page.dart
71+
└── home/
72+
└── home_page.dart
7673
```
7774
Generate => `/home`;
7875

@@ -147,11 +144,11 @@ It is also possible to change the global transition of the routes:
147144
```dart
148145
@override
149146
Widget build(BuildContext context) {
150-
return MaterialApp.router(
147+
return CupertinoApp.router(
151148
routerConfig: Routefly.routerConfig(
152149
routes: routes,
153150
routeBuilder: (context, settings, child) {
154-
return MaterialPageRoute(
151+
return CupertinoPageRoute(
155152
settings: settings, // !! IMPORTANT !!
156153
builder: (context) => child,
157154
);
@@ -183,14 +180,10 @@ In the Layout Widget, add `RouterOutlet()` wherever you prefer nested routes to
183180
ex:
184181

185182
```dart
186-
...
187-
Expanded(
188-
flex: 3,
189-
child: RouterOutlet(),
190-
),
191-
...
183+
RouterOutlet(),
192184
193185
```
186+
![Logo](https://github.com/Flutterando/routefly/blob/main/assets/images/nested_navigation.gif?raw=true)
194187

195188
## Middleware
196189

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: routefly
22
description: Folder-based route manager inspired by NextJS and created by the Flutterando community.
3-
version: 1.0.2
3+
version: 1.0.3
44
repository: https://github.com/Flutterando/routefly
55

66
environment:

0 commit comments

Comments
 (0)