优化赛事信息页 UI

This commit is contained in:
2026-07-28 10:12:13 +08:00
parent e3f9c8ebc0
commit 13ecb2fccc
3 changed files with 14 additions and 36 deletions
+9 -36
View File
@@ -10,6 +10,7 @@ import 'package:recording_tool/features/competition_teams/server/server_competit
import 'package:recording_tool/features/events/model/model_event_info.dart';
import 'package:recording_tool/features/events/state/state_event_info.dart';
import 'package:recording_tool/features/events/view_model/view_model_event_info.dart';
import 'package:recording_tool/gen/assets.gen.dart';
import 'package:recording_tool/shared/widgets/app_webview.dart';
import 'package:recording_tool/shared/widgets/widgets.dart';
@@ -117,21 +118,14 @@ class _TopGradientHeader extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SizedBox(
height: 219.h,
width: double.infinity,
child: DecoratedBox(
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(36.r),
bottomRight: Radius.circular(36.r),
),
gradient: const LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [Color(0xFF5EC9FF), Color(0xFF178BFF)],
),
),
return Positioned(
top: -10.h,
left: 0,
right: 0,
child: SizedBox(
height: 219.h,
width: double.infinity,
child: Image.asset(Assets.images.imageEventInfoBarBg.path),
),
);
}
@@ -194,27 +188,6 @@ class _ProfileSection extends StatelessWidget {
),
child: Stack(
children: [
// Positioned(
// top: -28.h,
// right: -14.w,
// child: Transform.rotate(
// angle: 0.68,
// child: Container(
// width: 110.w,
// height: 138.h,
// decoration: BoxDecoration(
// gradient: LinearGradient(
// begin: Alignment.topCenter,
// end: Alignment.bottomCenter,
// colors: [
// const Color(0xFF53D7FF).withValues(alpha: 0.12),
// const Color(0xFFFF85C8).withValues(alpha: 0.13),
// ],
// ),
// ),
// ),
// ),
// ),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
+5
View File
@@ -44,6 +44,10 @@ class $AssetsImagesGen {
AssetGenImage get imageDialogBg =>
const AssetGenImage('assets/images/image_dialog_bg.png');
/// File path: assets/images/image_event_info_bar_bg.png
AssetGenImage get imageEventInfoBarBg =>
const AssetGenImage('assets/images/image_event_info_bar_bg.png');
/// File path: assets/images/image_logo.png
AssetGenImage get imageLogo =>
const AssetGenImage('assets/images/image_logo.png');
@@ -83,6 +87,7 @@ class $AssetsImagesGen {
imageAppNameText,
imageBlueTeam,
imageDialogBg,
imageEventInfoBarBg,
imageLogo,
imageOk,
imagePageBg,