You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
840 B
35 lines
840 B
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<TestPage> createState() => _TestPageState();
|
|
}
|
|
|
|
class _TestPageState extends State<TestPage> {
|
|
@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返回'),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|