123456789101112131415161718192021222324 |
- import 'package:cpt_main/router/page/main_page_router.dart';
- import 'package:flutter/material.dart';
- import 'package:auto_route/auto_route.dart';
- @RoutePage()
- class NotificationPage extends StatelessWidget {
- const NotificationPage({Key? key}) : super(key: key);
- //启动当前页面
- static void startInstance({required BuildContext context}) {
- context.router.push(const NotificationPageRoute());
- }
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(title: Text("NotificationPage")),
- body: Center(
- child: Text("Notification Page"),
- ),
- );
- }
- }
|