fix: remove anonymous label from beacons, just omit author info entirely
This commit is contained in:
parent
67f74deb58
commit
6e8cc5d802
|
|
@ -85,35 +85,13 @@ 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,
|
||||
),
|
||||
),
|
||||
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
|
||||
Row(
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue