71 lines
2.1 KiB
Dart
71 lines
2.1 KiB
Dart
// Author: fruit.com.cn
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import '../../core/theme/app_colors.dart';
|
|
import '../../core/theme/app_dimens.dart';
|
|
import '../../core/theme/app_theme.dart';
|
|
import '../../core/widgets/plain_page_scaffold.dart';
|
|
import '../../l10n/app_localizations.dart';
|
|
|
|
// package_info is not configured in this client; keep the fallback in sync
|
|
// with the version in pubspec.yaml.
|
|
const String _fallbackAppVersion = '1.0.0';
|
|
|
|
class MineAboutPage extends StatelessWidget {
|
|
const MineAboutPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final l10n = AppLocalizations.of(context)!;
|
|
return Theme(
|
|
data: AppTheme.dark(),
|
|
child: PlainPageScaffold(
|
|
pageKey: const Key('mine-about-page'),
|
|
backKey: const Key('mine-about-back'),
|
|
title: l10n.aboutUs,
|
|
child: ListView(
|
|
padding: const EdgeInsets.fromLTRB(
|
|
AppDimens.pageHorizontal,
|
|
AppDimens.spaceXl,
|
|
AppDimens.pageHorizontal,
|
|
AppDimens.spaceXl,
|
|
),
|
|
children: [
|
|
Text(
|
|
l10n.appName,
|
|
textAlign: TextAlign.center,
|
|
style: const TextStyle(
|
|
fontFamily: 'Outfit',
|
|
color: AppColors.textPrimary,
|
|
fontSize: AppDimens.detailHeadline,
|
|
fontWeight: FontWeight.w700,
|
|
),
|
|
),
|
|
const SizedBox(height: AppDimens.spaceSm),
|
|
Text(
|
|
l10n.versionLabel(_fallbackAppVersion),
|
|
key: const Key('mine-about-version'),
|
|
textAlign: TextAlign.center,
|
|
style: const TextStyle(
|
|
color: AppColors.textTertiary,
|
|
fontSize: AppDimens.caption,
|
|
),
|
|
),
|
|
const SizedBox(height: AppDimens.spaceXl),
|
|
Text(
|
|
l10n.aboutDescription,
|
|
textAlign: TextAlign.center,
|
|
style: const TextStyle(
|
|
color: AppColors.textTabInactive,
|
|
fontSize: AppDimens.body,
|
|
height: 1.5,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|