unknow_page.dart 432 B

1234567891011121314151617181920212223
  1. import 'package:flutter/material.dart';
  2. /// 未知页面
  3. class UnknownPage extends StatelessWidget {
  4. final String? name;
  5. const UnknownPage({
  6. Key? key,
  7. this.name,
  8. }) : super(key: key);
  9. @override
  10. Widget build(BuildContext context) {
  11. return Scaffold(
  12. appBar: AppBar(),
  13. body: Container(
  14. alignment: Alignment.center,
  15. child: Text("${name ?? ''}页面不存在"),
  16. ),
  17. );
  18. }
  19. }