fix: remove anonymous label from beacons, just omit author info entirely

This commit is contained in:
Patrick Britton 2026-02-07 12:04:41 -06:00
parent 67f74deb58
commit 6e8cc5d802
2 changed files with 8 additions and 58 deletions

View file

@ -85,34 +85,12 @@ class _BeaconBottomSheetState extends ConsumerState<BeaconBottomSheet> {
post.body,
style: theme.textTheme.bodyLarge,
),
const SizedBox(height: 16),
// Anonymous beacon info
Row(
children: [
CircleAvatar(
radius: 16,
backgroundColor: accentColor.withValues(alpha: 0.2),
child: Icon(Icons.shield, size: 18, color: accentColor),
),
const SizedBox(width: 12),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Anonymous Beacon',
style: theme.textTheme.titleSmall?.copyWith(
fontWeight: FontWeight.bold,
),
),
Text(
'${_getFormattedDistance(post.distanceMeters)}${_getTimeAgo(post.createdAt)}',
style: theme.textTheme.bodySmall?.copyWith(
color: theme.textTheme.bodySmall?.color?.withValues(alpha: 0.6),
),
),
],
),
],
const SizedBox(height: 12),
Text(
'${_getFormattedDistance(post.distanceMeters)}${_getTimeAgo(post.createdAt)}',
style: theme.textTheme.bodySmall?.copyWith(
color: theme.textTheme.bodySmall?.color?.withValues(alpha: 0.6),
),
),
const SizedBox(height: 20),
// Action buttons

View file

@ -352,36 +352,8 @@ class _BeaconDetailScreenState extends ConsumerState<BeaconDetailScreen>
}
Widget _buildAuthorInfo() {
return Padding(
padding: const EdgeInsets.all(20),
child: Row(
children: [
CircleAvatar(
radius: 20,
backgroundColor: AppTheme.egyptianBlue.withValues(alpha: 0.2),
child: const Icon(Icons.shield, size: 22, color: AppTheme.egyptianBlue),
),
const SizedBox(width: 12),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Anonymous Beacon',
style: AppTheme.headlineSmall,
),
Text(
'Beacons are posted anonymously for community safety',
style: AppTheme.bodyMedium?.copyWith(
color: AppTheme.textDisabled,
),
),
],
),
),
],
),
);
// Beacons are anonymous no author info displayed
return const SizedBox.shrink();
}
Widget _buildActionButtons() {