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,
|
post.body,
|
||||||
style: theme.textTheme.bodyLarge,
|
style: theme.textTheme.bodyLarge,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 12),
|
||||||
// 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(
|
Text(
|
||||||
'${_getFormattedDistance(post.distanceMeters)} • ${_getTimeAgo(post.createdAt)}',
|
'${_getFormattedDistance(post.distanceMeters)} • ${_getTimeAgo(post.createdAt)}',
|
||||||
style: theme.textTheme.bodySmall?.copyWith(
|
style: theme.textTheme.bodySmall?.copyWith(
|
||||||
color: theme.textTheme.bodySmall?.color?.withValues(alpha: 0.6),
|
color: theme.textTheme.bodySmall?.color?.withValues(alpha: 0.6),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
// Action buttons
|
// Action buttons
|
||||||
Row(
|
Row(
|
||||||
|
|
|
||||||
|
|
@ -352,36 +352,8 @@ class _BeaconDetailScreenState extends ConsumerState<BeaconDetailScreen>
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildAuthorInfo() {
|
Widget _buildAuthorInfo() {
|
||||||
return Padding(
|
// Beacons are anonymous — no author info displayed
|
||||||
padding: const EdgeInsets.all(20),
|
return const SizedBox.shrink();
|
||||||
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,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildActionButtons() {
|
Widget _buildActionButtons() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue