Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Milad-Akarie/auto_route_library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: auto_route-v7.5.0
Choose a base ref
...
head repository: Milad-Akarie/auto_route_library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: auto_route-v7.6.0
Choose a head ref
  • 5 commits
  • 16 files changed
  • 3 contributors

Commits on Jun 27, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    JimmyTai Jimmy Tai
    Copy the full SHA
    46cfab8 View commit details

Commits on Jul 1, 2023

  1. Merge pull request #1626 from JimmyTai/bugs/module-generator-not-reco…

    …gnize-gm
    
    Fix AutoRouteConfig.module() doesn't generate part of file correctly.
    Milad-Akarie authored Jul 1, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1e169f6 View commit details
  2. feat: add 'scoped' argument to to StackRouter.popUntil, if true the p…

    …redicate will visit all StackRouters in hierarchy
    Milad-Akarie committed Jul 1, 2023
    Copy the full SHA
    ae69042 View commit details
  3. feat: add 'scoped' argument to to StackRouter.removeUntil, if true t…

    …he predicate will visit all StackRouters in hierarchy
    Milad-Akarie committed Jul 1, 2023
    Copy the full SHA
    a98774b View commit details
  4. chore(release): publish packages

     - auto_route@7.6.0
    Milad-Akarie committed Jul 1, 2023
    Copy the full SHA
    5273bf7 View commit details
39 changes: 20 additions & 19 deletions .idea/libraries/Dart_SDK.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,35 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 2023-07-01

### Changes

---

Packages with breaking changes:

- There are no breaking changes in this release.

Packages with other changes:

- [`auto_route` - `v7.6.0`](#auto_route---v760)
- [`auto_route_generator` - `v7.1.2`](#auto_route_generator---v712)

Packages with dependency updates only:

> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
- `auto_route_generator` - `v7.1.2`

---

#### `auto_route` - `v7.6.0`

- **FEAT**: add 'scoped' argument to to StackRouter.removeUntil, if true the predicate will visit all StackRouters in hierarchy.
- **FEAT**: add 'scoped' argument to to StackRouter.popUntil, if true the predicate will visit all StackRouters in hierarchy.


## 2023-06-24

### Changes
5 changes: 5 additions & 0 deletions auto_route/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 7.6.0

- **FEAT**: add 'scoped' argument to to StackRouter.removeUntil, if true the predicate will visit all StackRouters in hierarchy.
- **FEAT**: add 'scoped' argument to to StackRouter.popUntil, if true the predicate will visit all StackRouters in hierarchy.

## 7.5.0

- **FIX**: Uri percent-encoded characters encoded twice #1620.
6 changes: 6 additions & 0 deletions auto_route/example/build.dart
Original file line number Diff line number Diff line change
@@ -14,6 +14,12 @@ final _builders = <_i1.BuilderApplication>[
_i1.toDependentsOf(r'auto_route_generator'),
hideOutput: true,
),
_i1.apply(
r'auto_route_generator:auto_router_module_generator',
[_i2.autoRouterModuleBuilder],
_i1.toDependentsOf(r'auto_route_generator'),
hideOutput: false,
),
_i1.apply(
r'auto_route_generator:auto_router_generator',
[_i2.autoRouterBuilder],
1 change: 0 additions & 1 deletion auto_route/example/lib/mobile/router/router.dart
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@ import 'package:example/mobile/screens/profile/routes.dart';

@AutoRouterConfig(generateForDir: ['lib/mobile'])
class RootRouter extends $RootRouter {

@override
final List<AutoRoute> routes = [
AutoRoute(
Original file line number Diff line number Diff line change
@@ -6,12 +6,15 @@ import 'package:flutter/material.dart';
//ignore_for_file: public_member_api_docs
@RoutePage()
class BookListScreen extends StatefulWidget {
const BookListScreen(
// (String, int) record,
);

@override
State<BookListScreen> createState() => _BookListScreenState();
}

class _BookListScreenState extends State<BookListScreen>
with AutoRouteAwareStateMixin<BookListScreen> {
class _BookListScreenState extends State<BookListScreen> with AutoRouteAwareStateMixin<BookListScreen> {
@override
void didPushNext() {
print('didPushNext');
51 changes: 25 additions & 26 deletions auto_route/example/lib/mobile/screens/home_page.dart
Original file line number Diff line number Diff line change
@@ -90,33 +90,32 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
],
);
})
: AutoTabsRouter(
routes: [
BooksTab(),
ProfileTab(),
if (_showSettingsTap) SettingsTab(tab: 'tab'),
],
builder: (context, child) {
return Scaffold(
appBar: AppBar(
title: Text(context.topRoute.title(context)),
leading: AutoLeadingButton(ignorePagelessRoutes: true),
// bottom: TabBar(
// controller: controller,
// tabs: [
// for (final d in destinations)
// Tab(
// child: Text(d.label),
// )
// ],
// ),
),
body: child,
bottomNavigationBar:
buildBottomNav(context, context.tabsRouter),
: AutoTabsRouter(
routes: [
BooksTab(),
ProfileTab(),
if (_showSettingsTap) SettingsTab(tab: 'tab'),
],
builder: (context, child) {
return Scaffold(
appBar: AppBar(
title: Text(context.topRoute.title(context)),
leading: AutoLeadingButton(ignorePagelessRoutes: true),
// bottom: TabBar(
// controller: controller,
// tabs: [
// for (final d in destinations)
// Tab(
// child: Text(d.label),
// )
// ],
// ),
),
body: child,
bottomNavigationBar: buildBottomNav(context, context.tabsRouter),
);
},
);
},
);
}

Widget buildBottomNav(BuildContext context, TabsRouter tabsRouter) {
1 change: 1 addition & 0 deletions auto_route/example/lib/web_demo/router/web_router.dart
Original file line number Diff line number Diff line change
@@ -253,6 +253,7 @@ class _UserPostsPageState extends State<UserPostsPage> {
);
},
child: Text('Show Dialog')),

Padding(
padding: const EdgeInsets.symmetric(vertical: 16),
child: ElevatedButton(
Loading