| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import 'package:flutter/material.dart';
- import '../../core/l10n/app_localizations.dart';
- /// 占位页面 — 用于骨架路由中替代真实业务页面
- /// 开发新功能时替换为实际 Screen
- class PlaceholderScreen extends StatelessWidget {
- const PlaceholderScreen({
- super.key,
- required this.title,
- this.icon,
- });
- final String title;
- final IconData? icon;
- @override
- Widget build(BuildContext context) {
- final theme = Theme.of(context);
- return Scaffold(
- appBar: AppBar(title: Text(title)),
- body: Center(
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- Icon(
- icon ?? Icons.construction,
- size: 64,
- color: theme.colorScheme.primary.withAlpha(128),
- ),
- const SizedBox(height: 16),
- Text(
- title,
- style: theme.textTheme.titleLarge,
- ),
- const SizedBox(height: 8),
- Text(
- AppLocalizations.of(context)!.comingSoon,
- style: theme.textTheme.bodySmall,
- ),
- ],
- ),
- ),
- );
- }
- }
|