dart format

This commit is contained in:
Eric Poulsen
2026-06-13 22:05:46 -07:00
parent e1536c49b1
commit 5f54a2cd1b
4 changed files with 161 additions and 150 deletions
+3 -1
View File
@@ -125,7 +125,9 @@ class _BleDebugLogScreenState extends State<BleDebugLogScreen> {
if (context.mounted) { if (context.mounted) {
showDismissibleSnackBar( showDismissibleSnackBar(
context, context,
content: Text(context.l10n.debugLog_bleCopied), content: Text(
context.l10n.debugLog_bleCopied,
),
); );
} }
} }
+5 -1
View File
@@ -285,7 +285,11 @@ class _MapScreenState extends State<MapScreen> {
); );
} }
void _handleMapContextPress(BuildContext context, MeshCoreConnector connector, LatLng latLng) { void _handleMapContextPress(
BuildContext context,
MeshCoreConnector connector,
LatLng latLng,
) {
if (_isSelectingPoi) { if (_isSelectingPoi) {
setState(() { setState(() {
_isSelectingPoi = false; _isSelectingPoi = false;
+8 -3
View File
@@ -538,7 +538,8 @@ class _RoutingSheetBodyState extends State<_RoutingSheetBody> {
return GestureDetector( return GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onSecondaryTapUp: PlatformInfo.isDesktop && hasBytes onSecondaryTapUp: PlatformInfo.isDesktop && hasBytes
? (_) => _showPathDetail(context, connector, contact, record.pathBytes) ? (_) =>
_showPathDetail(context, connector, contact, record.pathBytes)
: null, : null,
child: Card( child: Card(
margin: const EdgeInsets.symmetric(vertical: 4), margin: const EdgeInsets.symmetric(vertical: 4),
@@ -587,8 +588,12 @@ class _RoutingSheetBodyState extends State<_RoutingSheetBody> {
? () => _applyHistoryPath(connector, contact, record) ? () => _applyHistoryPath(connector, contact, record)
: null, : null,
onLongPress: hasBytes onLongPress: hasBytes
? () => ? () => _showPathDetail(
_showPathDetail(context, connector, contact, record.pathBytes) context,
connector,
contact,
record.pathBytes,
)
: null, : null,
), ),
), ),