mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
fix: Use location pin icon
This commit is contained in:
@@ -1925,7 +1925,6 @@ class _ChannelActivityCard extends StatelessWidget {
|
|||||||
BuildContext context,
|
BuildContext context,
|
||||||
ChannelLocationSharingMode mode,
|
ChannelLocationSharingMode mode,
|
||||||
) {
|
) {
|
||||||
final isHardware = mode == ChannelLocationSharingMode.hardware;
|
|
||||||
const accent = Color(0xFF16A34A);
|
const accent = Color(0xFF16A34A);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
@@ -1936,7 +1935,7 @@ class _ChannelActivityCard extends StatelessWidget {
|
|||||||
border: Border.all(color: Colors.white, width: 2),
|
border: Border.all(color: Colors.white, width: 2),
|
||||||
),
|
),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
isHardware ? Icons.public_rounded : Icons.smartphone_rounded,
|
Icons.location_pin,
|
||||||
size: 11,
|
size: 11,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -2163,9 +2163,7 @@ class _MessagesTabState extends State<MessagesTab> {
|
|||||||
),
|
),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
sharingMode == ChannelLocationSharingMode.hardware
|
Icons.location_pin,
|
||||||
? Icons.public_rounded
|
|
||||||
: Icons.smartphone_rounded,
|
|
||||||
size: 9,
|
size: 9,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ class ContactTile extends StatelessWidget {
|
|||||||
BuildContext context,
|
BuildContext context,
|
||||||
ChannelLocationSharingMode mode,
|
ChannelLocationSharingMode mode,
|
||||||
) {
|
) {
|
||||||
final isHardware = mode == ChannelLocationSharingMode.hardware;
|
|
||||||
const accent = Color(0xFF16A34A);
|
const accent = Color(0xFF16A34A);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
@@ -82,7 +81,7 @@ class ContactTile extends StatelessWidget {
|
|||||||
border: Border.all(color: Colors.white, width: 2),
|
border: Border.all(color: Colors.white, width: 2),
|
||||||
),
|
),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
isHardware ? Icons.public_rounded : Icons.smartphone_rounded,
|
Icons.location_pin,
|
||||||
size: 11,
|
size: 11,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -261,9 +261,11 @@ class _RecipientSelectorSheetState extends State<RecipientSelectorSheet> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
IconData _channelLocationSharingIcon(ChannelLocationSharingMode mode) {
|
IconData _channelLocationSharingIcon(ChannelLocationSharingMode mode) {
|
||||||
return mode == ChannelLocationSharingMode.hardware
|
switch (mode) {
|
||||||
? Icons.public_rounded
|
case ChannelLocationSharingMode.hardware:
|
||||||
: Icons.smartphone_rounded;
|
case ChannelLocationSharingMode.appFallback:
|
||||||
|
return Icons.location_pin;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Color _channelLocationSharingColor(
|
Color _channelLocationSharingColor(
|
||||||
|
|||||||
Reference in New Issue
Block a user