ui: fix icons, button stylings

This commit is contained in:
2026-05-19 20:49:01 +02:00
parent 0c18ed15fe
commit dffe8d4f5e
2 changed files with 11 additions and 17 deletions
@@ -520,7 +520,7 @@ class _TrackingCard extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10), padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
child: Row( child: Row(
children: [ children: [
const Icon(Icons.label_outline), const Icon(Icons.label),
const SizedBox(width: 10), const SizedBox(width: 10),
Expanded( Expanded(
child: Column( child: Column(
+5 -11
View File
@@ -178,7 +178,7 @@ class _TagDetailSheetState extends ConsumerState<TagDetailSheet> {
value: _formatLastSeen(tag.lastSeen!), value: _formatLastSeen(tag.lastSeen!),
), ),
const SizedBox(height: 24), const SizedBox(height: 24),
FilledButton.tonal( OutlinedButton.icon(
onPressed: () { onPressed: () {
final isTracking = trackedTag?.tagId == tag.tagId; final isTracking = trackedTag?.tagId == tag.tagId;
ref.read(trackedTagProvider.notifier).state = isTracking ref.read(trackedTagProvider.notifier).state = isTracking
@@ -189,22 +189,16 @@ class _TagDetailSheetState extends ConsumerState<TagDetailSheet> {
GoRouter.of(context).go('/floorplan'); GoRouter.of(context).go('/floorplan');
} }
}, },
child: Row( icon: Icon(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
trackedTag?.tagId == tag.tagId trackedTag?.tagId == tag.tagId
? Icons.radar ? Icons.blur_off
: Icons.radar_outlined, : Icons.blur_on,
), ),
const SizedBox(width: 8), label: Text(
Text(
trackedTag?.tagId == tag.tagId trackedTag?.tagId == tag.tagId
? 'Hide particle cloud' ? 'Hide particle cloud'
: 'View particle cloud', : 'View particle cloud',
), ),
],
),
), ),
const SizedBox(height: 8), const SizedBox(height: 8),
TextButton( TextButton(