优化产品说明 返回

This commit is contained in:
mmc
2026-03-16 13:22:53 +08:00
parent 4d2afbd856
commit 14df0bc041
3 changed files with 18 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
class ProductPage extends StatefulWidget {
const ProductPage({super.key});
@@ -125,6 +126,11 @@ class _ProductPageState extends State<ProductPage> {
onPressed: () => setState(() => currentPage = 0),
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(
child: Text(
title,