import 'package:dating_touchme_app/components/page_appbar.dart'; import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; class TestPage extends StatefulWidget { final int a; final int b; const TestPage({super.key, required this.a, required this.b}); @override State createState() => _TestPageState(); } class _TestPageState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: PageAppbar(title: "路由测试",), body: Column( children: [ Text("a = ${widget.a}"), Text("b = ${widget.b}"), ElevatedButton( onPressed: () async { context.pop(); }, child: const Text('测试go router返回'), ), ], ), ); } }