import 'package:auto_route/auto_route.dart'; import 'package:flutter/material.dart'; import 'package:testing_deeplink/app_router.dart'; class ProfilePage extends StatelessWidget { const ProfilePage({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( body: Column( children: [ Text('Detail Page'), ElevatedButton( onPressed: () { context.router.push(DetailRoute(id: 2)); }, child: Text('Go To Detail'), ) ], ), ); } }