1234567891011121314151617181920212223 |
- import 'package:flutter/material.dart';
- /// 未知页面
- class UnknownPage extends StatelessWidget {
- final String? name;
- const UnknownPage({
- Key? key,
- this.name,
- }) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(),
- body: Container(
- alignment: Alignment.center,
- child: Text("${name ?? ''}页面不存在"),
- ),
- );
- }
- }
|