mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-12 00:40:28 +00:00
feat: Add localization support for contact and SAR marker display names
This commit is contained in:
@@ -172,7 +172,7 @@ class MapMarkers {
|
||||
borderRadius: BorderRadius.circular(3),
|
||||
),
|
||||
child: Text(
|
||||
marker.type.displayName,
|
||||
marker.type.getLocalizedName(context),
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 9,
|
||||
@@ -254,7 +254,7 @@ class MapMarkers {
|
||||
children: [
|
||||
Text(marker.type.emoji, style: const TextStyle(fontSize: 24)),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(child: Text(marker.type.displayName)),
|
||||
Expanded(child: Text(marker.type.getLocalizedName(context))),
|
||||
],
|
||||
),
|
||||
content: Column(
|
||||
|
||||
@@ -323,7 +323,7 @@ class _SarUpdateSheetState extends State<SarUpdateSheet> {
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
child: Text(
|
||||
contact.displayName,
|
||||
contact.getLocalizedDisplayName(context),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
@@ -764,7 +764,7 @@ class MarkerTypeChip extends StatelessWidget {
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: Text(
|
||||
type.displayName,
|
||||
type.getLocalizedName(context),
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
|
||||
Reference in New Issue
Block a user