mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-27 22:16:37 +10:00
dart format
This commit is contained in:
@@ -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,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user