chore: add custom map icons (#4339)

This commit is contained in:
ggurdin 2025-10-10 15:59:11 -04:00 committed by GitHub
parent f92548d4af
commit 255f736a9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,8 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:go_router/go_router.dart';
import 'package:material_symbols_icons/symbols.dart';
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/l10n/l10n.dart';
import 'package:fluffychat/pangea/common/widgets/pangea_logo_svg.dart';
@ -13,6 +15,9 @@ class PlanTripPage extends StatelessWidget {
super.key,
});
static String mapStartFileName = "start_trip.svg";
static String mapUnlockFileName = "unlock_trip.svg";
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
@ -64,7 +69,15 @@ class PlanTripPage extends StatelessWidget {
spacing: 4.0,
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(Icons.map_outlined),
SvgPicture.network(
"${AppConfig.assetsBaseURL}/$mapUnlockFileName",
width: 24.0,
height: 24.0,
colorFilter: ColorFilter.mode(
theme.colorScheme.onPrimaryContainer,
BlendMode.srcIn,
),
),
Text(L10n.of(context).unlockPrivateTrip),
],
),
@ -81,7 +94,11 @@ class PlanTripPage extends StatelessWidget {
spacing: 4.0,
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(Symbols.map_search),
Icon(
Symbols.map_search,
size: 24.0,
color: theme.colorScheme.onPrimaryContainer,
),
Text(L10n.of(context).joinPublicTrip),
],
),
@ -98,7 +115,15 @@ class PlanTripPage extends StatelessWidget {
spacing: 4.0,
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(Icons.map_outlined),
SvgPicture.network(
"${AppConfig.assetsBaseURL}/$mapStartFileName",
width: 24.0,
height: 24.0,
colorFilter: ColorFilter.mode(
theme.colorScheme.onPrimaryContainer,
BlendMode.srcIn,
),
),
Text(L10n.of(context).startOwnTrip),
],
),