part of '../../core_app.dart';

/// 非 Android 平台上的兜底提示页。
class UnsupportedPlatformPage extends StatelessWidget {
  /// 创建不支持平台提示页。
  const UnsupportedPlatformPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: _shellBackgroundColor,
      body: Center(
        child: Padding(
          padding: const EdgeInsets.symmetric(horizontal: 28),
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: <Widget>[
              Container(
                width: 80,
                height: 80,
                decoration: BoxDecoration(
                  color: const Color(0xFFE8F5E9),
                  borderRadius: BorderRadius.circular(24),
                ),
                alignment: Alignment.center,
                child: Icon(
                  Icons.language_rounded,
                  size: 42,
                  color: _shellAccentColor,
                ),
              ),
              const SizedBox(height: 20),
              Text(
                '当前平台不支持内嵌 WebView',
                style: TextStyle(
                  fontSize: 22,
                  fontWeight: FontWeight.w800,
                  color: _shellTextColor,
                ),
                textAlign: TextAlign.center,
              ),
              const SizedBox(height: 14),
              Text(
                '当前项目仅支持 Android 平板运行。\n$_initialUrl',
                textAlign: TextAlign.center,
                style: TextStyle(
                  height: 1.6,
                  color: _shellMutedTextColor,
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
