diff --git a/assets/images/image_event_info_bar_bg.png b/assets/images/image_event_info_bar_bg.png new file mode 100644 index 0000000..f148e5b Binary files /dev/null and b/assets/images/image_event_info_bar_bg.png differ diff --git a/lib/features/events/pages/page_event_info.dart b/lib/features/events/pages/page_event_info.dart index 5bf577f..6ba7bbb 100644 --- a/lib/features/events/pages/page_event_info.dart +++ b/lib/features/events/pages/page_event_info.dart @@ -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: [ diff --git a/lib/gen/assets.gen.dart b/lib/gen/assets.gen.dart index 81485cd..de8e257 100644 --- a/lib/gen/assets.gen.dart +++ b/lib/gen/assets.gen.dart @@ -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,