feat: 静态页面开发完成

This commit is contained in:
2026-05-21 14:09:46 +08:00
parent 8156e8efbf
commit 763aef6bb9
73 changed files with 6345 additions and 1370 deletions

View File

@@ -192,7 +192,6 @@ class _EventPublishPageState extends ConsumerState<EventPublishPage> {
controller: _descController,
label: l10n.eventDesc,
hint: l10n.eventDescHint,
icon: Icons.description_outlined,
maxLines: 4,
validator: (v) => v == null || v.isEmpty ? l10n.eventDesc : null,
),
@@ -274,7 +273,7 @@ class _EventPublishPageState extends ConsumerState<EventPublishPage> {
Widget _buildSectionTitle(String title) {
return Text(
title,
style: const TextStyle(
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w600,
color: AppColors.textPrimary,
@@ -286,7 +285,7 @@ class _EventPublishPageState extends ConsumerState<EventPublishPage> {
required TextEditingController controller,
required String label,
required String hint,
required IconData icon,
IconData? icon,
int maxLines = 1,
String? Function(String?)? validator,
}) {
@@ -295,7 +294,7 @@ class _EventPublishPageState extends ConsumerState<EventPublishPage> {
children: [
Text(
label,
style: const TextStyle(
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
color: AppColors.textPrimary,
@@ -308,7 +307,9 @@ class _EventPublishPageState extends ConsumerState<EventPublishPage> {
validator: validator,
decoration: InputDecoration(
hintText: hint,
prefixIcon: Icon(icon, color: AppColors.textTertiary, size: 20),
prefixIcon: icon != null
? Icon(icon, color: AppColors.textTertiary, size: 20)
: null,
filled: true,
fillColor: AppColors.surface,
border: OutlineInputBorder(
@@ -382,9 +383,9 @@ class _EventPublishPageState extends ConsumerState<EventPublishPage> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(Icons.add_photo_alternate_outlined, color: AppColors.textTertiary, size: 28),
Icon(Icons.add_photo_alternate_outlined, color: AppColors.textTertiary, size: 28),
const SizedBox(height: 4),
Text(l10n.addImage, style: const TextStyle(fontSize: 12, color: AppColors.textTertiary)),
Text(l10n.addImage, style: TextStyle(fontSize: 12, color: AppColors.textTertiary)),
],
),
),
@@ -418,7 +419,7 @@ class _EventPublishPageState extends ConsumerState<EventPublishPage> {
children: [
Text(
label,
style: const TextStyle(fontSize: 12, color: AppColors.textSecondary),
style: TextStyle(fontSize: 12, color: AppColors.textSecondary),
),
const SizedBox(height: 2),
Text(
@@ -434,7 +435,7 @@ class _EventPublishPageState extends ConsumerState<EventPublishPage> {
],
),
),
const Icon(Icons.chevron_right, color: AppColors.textTertiary),
Icon(Icons.chevron_right, color: AppColors.textTertiary),
],
),
),
@@ -465,11 +466,11 @@ class _EventPublishPageState extends ConsumerState<EventPublishPage> {
children: [
Text(
l10n.popupReminder,
style: const TextStyle(fontSize: 15, fontWeight: FontWeight.w500, color: AppColors.textPrimary),
style: TextStyle(fontSize: 15, fontWeight: FontWeight.w500, color: AppColors.textPrimary),
),
Text(
l10n.popupReminderDesc,
style: const TextStyle(fontSize: 12, color: AppColors.textSecondary),
style: TextStyle(fontSize: 12, color: AppColors.textSecondary),
),
],
),