优化产品说明 返回
This commit is contained in:
@@ -93,14 +93,16 @@ class _ManualPageState extends State<ManualPage> {
|
|||||||
showMenu ? '使用说明' : _getCurrentTitle(),
|
showMenu ? '使用说明' : _getCurrentTitle(),
|
||||||
style: const TextStyle(fontSize: 18, fontWeight: FontWeight.w600, color: Color(0xFF2A3A55)),
|
style: const TextStyle(fontSize: 18, fontWeight: FontWeight.w600, color: Color(0xFF2A3A55)),
|
||||||
),
|
),
|
||||||
//leading: IconButton(
|
leading: IconButton(
|
||||||
// icon: const Icon(Icons.arrow_back_ios, size: 16, color: Color(0xFF4A5568)),
|
icon: const Icon(Icons.arrow_back_ios, size: 16, color: Color(0xFF4A5568)),
|
||||||
// onPressed: () {
|
onPressed: () {
|
||||||
// if (!showMenu) {
|
if (!showMenu) {
|
||||||
// setState(() => showMenu = true);
|
setState(() => showMenu = true);
|
||||||
// }
|
} else {
|
||||||
// },
|
Navigator.of(context).pop();
|
||||||
//),
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
body: Column(children: [Expanded(child: showMenu ? _buildMenu() : _buildContent())]),
|
body: Column(children: [Expanded(child: showMenu ? _buildMenu() : _buildContent())]),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:go_router/go_router.dart';
|
||||||
|
|
||||||
class ProductPage extends StatefulWidget {
|
class ProductPage extends StatefulWidget {
|
||||||
const ProductPage({super.key});
|
const ProductPage({super.key});
|
||||||
@@ -125,6 +126,11 @@ class _ProductPageState extends State<ProductPage> {
|
|||||||
onPressed: () => setState(() => currentPage = 0),
|
onPressed: () => setState(() => currentPage = 0),
|
||||||
icon: const Icon(Icons.arrow_back_ios, size: 18, color: Color(0xFF333333)),
|
icon: const Icon(Icons.arrow_back_ios, size: 18, color: Color(0xFF333333)),
|
||||||
),
|
),
|
||||||
|
if (currentPage == 0)
|
||||||
|
IconButton(
|
||||||
|
onPressed: () => context.pop(),
|
||||||
|
icon: const Icon(Icons.arrow_back_ios, size: 18, color: Color(0xFF333333)),
|
||||||
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
title,
|
||||||
|
|||||||
@@ -346,11 +346,9 @@ class _MachineDetailsPageState extends State<MachineDetailsPage> {
|
|||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (title == "使用说明") {
|
if (title == "使用说明") {
|
||||||
context.go(RoutePaths.usage);
|
context.push(RoutePaths.usage);
|
||||||
} else {
|
} else {
|
||||||
context.go(RoutePaths.productDesc);
|
context.push(RoutePaths.productDesc);
|
||||||
|
|
||||||
//ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('暂未开放$title功能')));
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|||||||
Reference in New Issue
Block a user