feat: render los elevation via material symbol

This commit is contained in:
just_stuff_tm
2026-02-23 00:42:36 -05:00
parent 9bcb8b9ca6
commit bd27c90216
4 changed files with 21 additions and 54 deletions
-5
View File
@@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 -960 960 960"
fill="#e3e3e3">
<path d="m82-120 258-360h202l298-348v708H82Zm70-233-64-46 172-241h202l188-219 60 52-212 247H300L152-353Zm86 153h522v-412L578-400H380L238-200Zm522 0Z"/>
</svg>

Before

Width:  |  Height:  |  Size: 252 B

+12 -7
View File
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:material_symbols_icons/material_symbols_icons.dart';
class LosIcon extends StatelessWidget {
final double size;
@@ -13,12 +13,17 @@ class LosIcon extends StatelessWidget {
@override
Widget build(BuildContext context) {
final iconColor = color ?? IconTheme.of(context).color ?? Colors.black;
return SvgPicture.asset(
'assets/icons/los_elevation.svg',
width: size,
height: size,
colorFilter: ColorFilter.mode(iconColor, BlendMode.srcIn),
final theme = Theme.of(context);
final iconTheme = IconTheme.of(context);
final iconColor = color ??
iconTheme.color ??
theme.iconTheme.color ??
theme.colorScheme.onSurface;
return Icon(
Symbols.elevation,
size: size,
color: iconColor,
);
}
}
+8 -40
View File
@@ -347,14 +347,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "8.2.2"
flutter_svg:
dependency: "direct main"
description:
name: flutter_svg
sha256: "87fbd7c534435b6c5d9d98b01e1fd527812b82e68ddd8bd35fc45ed0fa8f0a95"
url: "https://pub.dev"
source: hosted
version: "2.2.3"
flutter_test:
dependency: "direct dev"
description: flutter
@@ -517,6 +509,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.13.0"
material_symbols_icons:
dependency: "direct main"
description:
name: material_symbols_icons
sha256: c62b15f2b3de98d72cbff0148812f5ef5159f05e61fc9f9a089ec2bb234df082
url: "https://pub.dev"
source: hosted
version: "4.2906.0"
meta:
dependency: transitive
description:
@@ -605,14 +605,6 @@ packages:
url: "https://pub.dev"
source: hosted
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:
dependency: "direct main"
description:
@@ -1026,30 +1018,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.5.3"
vector_graphics:
dependency: transitive
description:
name: vector_graphics
sha256: a4f059dc26fc8295b5921376600a194c4ec7d55e72f2fe4c7d2831e103d461e6
url: "https://pub.dev"
source: hosted
version: "1.1.19"
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: "5a88dd14c0954a5398af544651c7fb51b457a2a556949bfb25369b210ef73a74"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
vector_math:
dependency: transitive
description:
+1 -2
View File
@@ -60,7 +60,7 @@ dependencies:
gpx: ^2.3.0
path_provider: ^2.1.5
share_plus: ^12.0.1
flutter_svg: ^2.0.10
material_symbols_icons: ^4.2906.0
dev_dependencies:
flutter_test:
@@ -88,7 +88,6 @@ flutter:
assets:
- assets/images/
- assets/icons/los_elevation.svg
flutter_launcher_icons:
android: true