优化使用说明和产品介绍样式
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -2,8 +2,8 @@ import 'package:flutter_bloc/flutter_bloc.dart';
|
|||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:maibu_satabot_v2/features/home/presentation/pages/dj_page.dart';
|
import 'package:maibu_satabot_v2/features/home/presentation/pages/dj_page.dart';
|
||||||
import 'package:maibu_satabot_v2/features/home/presentation/pages/home_page.dart';
|
import 'package:maibu_satabot_v2/features/home/presentation/pages/home_page.dart';
|
||||||
import 'package:maibu_satabot_v2/features/home/presentation/pages/productDesc.dart';
|
|
||||||
import 'package:maibu_satabot_v2/features/home/presentation/pages/usage.dart';
|
import 'package:maibu_satabot_v2/features/home/presentation/pages/usage.dart';
|
||||||
|
import 'package:maibu_satabot_v2/features/home/presentation/pages/productDesc.dart';
|
||||||
|
|
||||||
import '../../../../core/di/injection.dart';
|
import '../../../../core/di/injection.dart';
|
||||||
import '../../../../core/router/route_paths.dart';
|
import '../../../../core/router/route_paths.dart';
|
||||||
@@ -27,8 +27,8 @@ class HomeRoutes {
|
|||||||
),
|
),
|
||||||
GoRoute(path: RoutePaths.routePlan, builder: (context, state) => const RoutePlanPage()),
|
GoRoute(path: RoutePaths.routePlan, builder: (context, state) => const RoutePlanPage()),
|
||||||
GoRoute(path: RoutePaths.djMap, builder: (context, state) => const DjPage()),
|
GoRoute(path: RoutePaths.djMap, builder: (context, state) => const DjPage()),
|
||||||
GoRoute(path: RoutePaths.productDesc, builder: (context, state) => const ManualPage()),
|
GoRoute(path: RoutePaths.productDesc, builder: (context, state) => const ProductPage()),
|
||||||
GoRoute(path: RoutePaths.usage, builder: (context, state) => const ProductPage()),
|
GoRoute(path: RoutePaths.usage, builder: (context, state) => const ManualPage()),
|
||||||
GoRoute(
|
GoRoute(
|
||||||
path: RoutePaths.runningStatus,
|
path: RoutePaths.runningStatus,
|
||||||
// builder: (context, state) => const RunningStatusPage(),
|
// builder: (context, state) => const RunningStatusPage(),
|
||||||
|
|||||||
@@ -346,9 +346,10 @@ class _MachineDetailsPageState extends State<MachineDetailsPage> {
|
|||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (title == "使用说明") {
|
if (title == "使用说明") {
|
||||||
context.go(RoutePaths.productDesc);
|
|
||||||
} else {
|
|
||||||
context.go(RoutePaths.usage);
|
context.go(RoutePaths.usage);
|
||||||
|
} else {
|
||||||
|
context.go(RoutePaths.productDesc);
|
||||||
|
|
||||||
//ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('暂未开放$title功能')));
|
//ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('暂未开放$title功能')));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user