공개페이지
This commit is contained in:
@@ -17,6 +17,7 @@ import 'screens/club/events_screen.dart';
|
||||
import 'screens/club/club_settings_screen.dart';
|
||||
// import 'screens/score/club_statistics_screen.dart';
|
||||
import 'widgets/dialog_actions.dart';
|
||||
import 'screens/public_event/public_event_entry_screen.dart';
|
||||
|
||||
// 전역 네비게이터 키 (인증 오류 처리용)
|
||||
final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
|
||||
@@ -170,6 +171,17 @@ class MyApp extends StatelessWidget {
|
||||
'/profile': (context) => const ProfileScreen(),
|
||||
ClubSettingsScreen.routeName: (context) => const ClubSettingsScreen(),
|
||||
},
|
||||
onGenerateRoute: (settings) {
|
||||
final name = settings.name ?? '';
|
||||
if (name.startsWith('/p/')) {
|
||||
final hash = name.substring(3);
|
||||
return MaterialPageRoute(
|
||||
builder: (_) => PublicEventEntryScreen(publicHash: hash),
|
||||
settings: settings,
|
||||
);
|
||||
}
|
||||
return null;
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user