feat: render los elevation via material symbol

chore/offband-rebrand
just_stuff_tm 5 months ago
parent 9bcb8b9ca6
commit bd27c90216

@ -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

@ -1,5 +1,5 @@
import 'package:flutter/material.dart'; 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 { class LosIcon extends StatelessWidget {
final double size; final double size;
@ -13,12 +13,17 @@ class LosIcon extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final iconColor = color ?? IconTheme.of(context).color ?? Colors.black; final theme = Theme.of(context);
return SvgPicture.asset( final iconTheme = IconTheme.of(context);
'assets/icons/los_elevation.svg', final iconColor = color ??
width: size, iconTheme.color ??
height: size, theme.iconTheme.color ??
colorFilter: ColorFilter.mode(iconColor, BlendMode.srcIn), theme.colorScheme.onSurface;
return Icon(
Symbols.elevation,
size: size,
color: iconColor,
); );
} }
} }

@ -347,14 +347,6 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "8.2.2" 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: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@ -517,6 +509,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.13.0" 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: meta:
dependency: transitive dependency: transitive
description: description:
@ -605,14 +605,6 @@ 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:
@ -1026,30 +1018,6 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "4.5.3" 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: vector_math:
dependency: transitive dependency: transitive
description: description:

@ -60,7 +60,7 @@ dependencies:
gpx: ^2.3.0 gpx: ^2.3.0
path_provider: ^2.1.5 path_provider: ^2.1.5
share_plus: ^12.0.1 share_plus: ^12.0.1
flutter_svg: ^2.0.10 material_symbols_icons: ^4.2906.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
@ -88,7 +88,6 @@ flutter:
assets: assets:
- assets/images/ - assets/images/
- assets/icons/los_elevation.svg
flutter_launcher_icons: flutter_launcher_icons:
android: true android: true

Loading…
Cancel
Save

Powered by TurnKey Linux.