Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart_hotel_app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张宏
smart_hotel_app
Commits
5e6cf1be
Commit
5e6cf1be
authored
Jun 10, 2026
by
张宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5114f34f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
11 deletions
+40
-11
app_router.gr.dart
lib/routes/app_router.gr.dart
+39
-10
inspection_device_view.dart
lib/views/home/inspection_device/inspection_device_view.dart
+1
-1
No files found.
lib/routes/app_router.gr.dart
View file @
5e6cf1be
...
...
@@ -120,9 +120,14 @@ abstract class $AppRouter extends _i21.RootStackRouter {
);
},
InspectionTopologyRoute
.
name
:
(
routeData
)
{
final
args
=
routeData
.
argsAs
<
InspectionTopologyRouteArgs
>(
orElse:
()
=>
const
InspectionTopologyRouteArgs
());
return
_i21
.
AutoRoutePage
<
dynamic
>(
routeData:
routeData
,
child:
const
_i9
.
InspectionTopologyView
(),
child:
_i9
.
InspectionTopologyView
(
key:
args
.
key
,
deviceId:
args
.
deviceId
,
),
);
},
LoginRoute
.
name
:
(
routeData
)
{
...
...
@@ -181,8 +186,7 @@ abstract class $AppRouter extends _i21.RootStackRouter {
);
},
ServiceDeviceDetailRoute
.
name
:
(
routeData
)
{
final
args
=
routeData
.
argsAs
<
ServiceDeviceDetailRouteArgs
>(
orElse:
()
=>
const
ServiceDeviceDetailRouteArgs
(
deviceId:
0
));
final
args
=
routeData
.
argsAs
<
ServiceDeviceDetailRouteArgs
>();
return
_i21
.
AutoRoutePage
<
dynamic
>(
routeData:
routeData
,
child:
_i18
.
ServiceDeviceDetailView
(
...
...
@@ -198,8 +202,7 @@ abstract class $AppRouter extends _i21.RootStackRouter {
);
},
ServiceRoomDetailRoute
.
name
:
(
routeData
)
{
final
args
=
routeData
.
argsAs
<
ServiceRoomDetailRouteArgs
>(
orElse:
()
=>
const
ServiceRoomDetailRouteArgs
(
roomId:
0
));
final
args
=
routeData
.
argsAs
<
ServiceRoomDetailRouteArgs
>();
return
_i21
.
AutoRoutePage
<
dynamic
>(
routeData:
routeData
,
child:
_i20
.
ServiceRoomDetailView
(
...
...
@@ -426,16 +429,41 @@ class InspectionHistoryRouteArgs {
/// generated route for
/// [_i9.InspectionTopologyView]
class
InspectionTopologyRoute
extends
_i21
.
PageRouteInfo
<
void
>
{
const
InspectionTopologyRoute
({
List
<
_i21
.
PageRouteInfo
>?
children
})
:
super
(
class
InspectionTopologyRoute
extends
_i21
.
PageRouteInfo
<
InspectionTopologyRouteArgs
>
{
InspectionTopologyRoute
({
_i22
.
Key
?
key
,
int
deviceId
=
0
,
List
<
_i21
.
PageRouteInfo
>?
children
,
})
:
super
(
InspectionTopologyRoute
.
name
,
args:
InspectionTopologyRouteArgs
(
key:
key
,
deviceId:
deviceId
,
),
initialChildren:
children
,
);
static
const
String
name
=
'InspectionTopologyRoute'
;
static
const
_i21
.
PageInfo
<
void
>
page
=
_i21
.
PageInfo
<
void
>(
name
);
static
const
_i21
.
PageInfo
<
InspectionTopologyRouteArgs
>
page
=
_i21
.
PageInfo
<
InspectionTopologyRouteArgs
>(
name
);
}
class
InspectionTopologyRouteArgs
{
const
InspectionTopologyRouteArgs
({
this
.
key
,
this
.
deviceId
=
0
,
});
final
_i22
.
Key
?
key
;
final
int
deviceId
;
@override
String
toString
()
{
return
'InspectionTopologyRouteArgs{key:
$key
, deviceId:
$deviceId
}'
;
}
}
/// generated route for
...
...
@@ -591,7 +619,8 @@ class SearchRouteArgs {
/// generated route for
/// [_i18.ServiceDeviceDetailView]
class
ServiceDeviceDetailRoute
extends
_i21
.
PageRouteInfo
<
ServiceDeviceDetailRouteArgs
>
{
class
ServiceDeviceDetailRoute
extends
_i21
.
PageRouteInfo
<
ServiceDeviceDetailRouteArgs
>
{
ServiceDeviceDetailRoute
({
_i22
.
Key
?
key
,
required
int
deviceId
,
...
...
lib/views/home/inspection_device/inspection_device_view.dart
View file @
5e6cf1be
...
...
@@ -41,7 +41,7 @@ class InspectionDeviceView extends StatelessWidget {
),
title:
GestureDetector
(
onTap:
()
{
context
.
pushRoute
(
const
InspectionTopologyRoute
());
context
.
pushRoute
(
InspectionTopologyRoute
());
},
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
end
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment