ui: fix icons, button stylings
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -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,21 +189,15 @@ class _TagDetailSheetState extends ConsumerState<TagDetailSheet> {
|
|||||||
GoRouter.of(context).go('/floorplan');
|
GoRouter.of(context).go('/floorplan');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Row(
|
icon: Icon(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
trackedTag?.tagId == tag.tagId
|
||||||
children: [
|
? Icons.blur_off
|
||||||
Icon(
|
: Icons.blur_on,
|
||||||
trackedTag?.tagId == tag.tagId
|
),
|
||||||
? Icons.radar
|
label: Text(
|
||||||
: Icons.radar_outlined,
|
trackedTag?.tagId == tag.tagId
|
||||||
),
|
? 'Hide particle cloud'
|
||||||
const SizedBox(width: 8),
|
: 'View particle cloud',
|
||||||
Text(
|
|
||||||
trackedTag?.tagId == tag.tagId
|
|
||||||
? 'Hide particle cloud'
|
|
||||||
: 'View particle cloud',
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
|
|||||||
Reference in New Issue
Block a user