更换靶面美术资源

This commit is contained in:
2026-08-09 04:26:19 +08:00
parent 6901b08a94
commit e3d6fac6e1
6 changed files with 109 additions and 8 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

+58
View File
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="345px" height="345px" viewBox="0 0 345 345" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>40/80/122 全环靶@3x</title>
<g id="靶子与靶点-" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="靶" transform="translate(-15.000000, -51.000000)">
<g id="shoot" transform="translate(15.000000, 51.000000)">
<g id="编组">
<circle id="椭圆形" stroke="#666666" stroke-width="0.5" fill="#FFFFFF" cx="172.5" cy="172.5" r="172.25"></circle>
<circle id="椭圆形" stroke="#666666" stroke-width="0.5" cx="172.5" cy="172.5" r="155.25"></circle>
<circle id="椭圆形" fill="#5E5E5E" cx="172.5" cy="172.5" r="138"></circle>
<circle id="椭圆形" stroke="#FFFFFF" stroke-width="0.5" opacity="0.6" cx="172.5" cy="172.5" r="120.75"></circle>
<circle id="椭圆形" fill="#38BFF2" cx="172.5" cy="172.5" r="103.5"></circle>
<circle id="椭圆形" stroke="#333333" stroke-width="0.5" opacity="0.600000024" cx="172.5" cy="172.5" r="86.25"></circle>
<circle id="椭圆形" fill="#FF5665" cx="172.5" cy="172.5" r="69"></circle>
<circle id="椭圆形" stroke="#333333" stroke-width="0.5" opacity="0.600000024" cx="172.5" cy="172.5" r="51.75"></circle>
<circle id="椭圆形备份" fill="#FDDC61" cx="172.5" cy="172.5" r="34.5"></circle>
<circle id="椭圆形" stroke="#333333" stroke-width="0.5" opacity="0.600000024" cx="172.5" cy="172.5" r="17.25"></circle>
<circle id="椭圆形" stroke="#333333" stroke-width="0.5" opacity="0.600000024" cx="172.5" cy="172.5" r="8.625"></circle>
</g>
<g id="编组-5" transform="translate(161.000000, 164.500000)" font-family="PingFangSC-Regular, PingFang SC" font-weight="normal">
<text id="1" font-size="10" fill="#333333">
<tspan x="172.608636" y="11">1</tspan>
</text>
<text id="2" font-size="10" fill="#333333">
<tspan x="154.136364" y="11">2</tspan>
</text>
<text id="3" font-size="10" fill="#FFFFFF">
<tspan x="137.136364" y="11">3</tspan>
</text>
<text id="4" font-size="10" fill="#FFFFFF">
<tspan x="120" y="11">4</tspan>
</text>
<text id="5" font-size="10" fill="#333333">
<tspan x="103" y="11">5</tspan>
</text>
<text id="6" font-size="10" fill="#333333">
<tspan x="86" y="11">6</tspan>
</text>
<text id="7" font-size="10" fill="#333333">
<tspan x="69.265" y="11">7</tspan>
</text>
<text id="8" font-size="10" fill="#333333">
<tspan x="52" y="11">8</tspan>
</text>
<text id="9" font-size="10" fill="#333333">
<tspan x="35" y="11">9</tspan>
</text>
<text id="10" font-size="7" fill="#333333">
<tspan x="20.9965" y="10">10</tspan>
</text>
<text id="X" font-size="7" fill="#333333">
<tspan x="9.2705" y="10.5">X</tspan>
</text>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:arcx/app/app_theme.dart'; import 'package:arcx/app/app_theme.dart';
import 'package:arcx/features/scoring/presentation/widgets/hit_point_painter.dart'; import 'package:arcx/features/scoring/presentation/widgets/hit_point_painter.dart';
@@ -30,8 +31,8 @@ class HeatmapCard extends StatelessWidget {
fit: StackFit.expand, fit: StackFit.expand,
alignment: Alignment.center, alignment: Alignment.center,
children: [ children: [
Image.asset( SvgPicture.asset(
'assets/images/target_face.png', 'assets/images/target_face.svg',
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
CustomPaint( CustomPaint(
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:arcx/app/app_theme.dart'; import 'package:arcx/app/app_theme.dart';
import 'package:arcx/features/config/application/app_config_controller.dart'; import 'package:arcx/features/config/application/app_config_controller.dart';
@@ -104,8 +105,8 @@ class _PointBookEditPageState extends ConsumerState<PointBookEditPage> {
child: Stack( child: Stack(
alignment: Alignment.center, alignment: Alignment.center,
children: [ children: [
Image.asset( SvgPicture.asset(
'assets/images/target_face.png', 'assets/images/target_face.svg',
width: size, width: size,
height: size, height: size,
fit: BoxFit.fill, fit: BoxFit.fill,
+40
View File
@@ -342,6 +342,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.6.1" version: "2.6.1"
flutter_svg:
dependency: "direct main"
description:
name: flutter_svg
sha256: "35882981abcbfb8c15b286f0cd690ff25bac12d95eff3e25ee207f37d4c42e7f"
url: "https://pub.dev"
source: hosted
version: "2.3.0"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@@ -688,6 +696,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.9.1" version: "1.9.1"
path_parsing:
dependency: transitive
description:
name: path_parsing
sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
path_provider: path_provider:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -933,6 +949,30 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.3.1" version: "2.3.1"
vector_graphics:
dependency: transitive
description:
name: vector_graphics
sha256: "9d0e3b9cb16542ad660daee871e726a10d13a93b7b5391677c3160e8f5e83935"
url: "https://pub.dev"
source: hosted
version: "1.2.3"
vector_graphics_codec:
dependency: transitive
description:
name: vector_graphics_codec
sha256: "99fd9fbd34d9f9a32efd7b6a6aae14125d8237b10403b422a6a6dfeac2806146"
url: "https://pub.dev"
source: hosted
version: "1.1.13"
vector_graphics_compiler:
dependency: transitive
description:
name: vector_graphics_compiler
sha256: "4dca4feb77dc3ec7f6e27e49c53241eb8217f55e4f9b12599a27f8903bca5682"
url: "https://pub.dev"
source: hosted
version: "1.3.0"
vector_math: vector_math:
dependency: transitive dependency: transitive
description: description:
+1
View File
@@ -17,6 +17,7 @@ dependencies:
isar_flutter_libs: 3.1.0+1 isar_flutter_libs: 3.1.0+1
path: ^1.9.1 path: ^1.9.1
path_provider: ^2.1.5 path_provider: ^2.1.5
flutter_svg: ^2.3.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test: