mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-02-12 16:52:51 +00:00
clean up debug logging
This commit is contained in:
@@ -478,15 +478,12 @@ class AppState extends ChangeNotifier {
|
||||
|
||||
// Positioning tutorial methods
|
||||
void registerTutorialCallback(VoidCallback onComplete) {
|
||||
debugPrint('[AppState] Registering tutorial callback');
|
||||
_tutorialCompletionCallback = onComplete;
|
||||
// Record the starting position when tutorial begins
|
||||
if (session?.target != null) {
|
||||
_tutorialStartPosition = session!.target;
|
||||
debugPrint('[AppState] Tutorial start position (add): ${_tutorialStartPosition}');
|
||||
} else if (editSession?.target != null) {
|
||||
_tutorialStartPosition = editSession!.target;
|
||||
debugPrint('[AppState] Tutorial start position (edit): ${_tutorialStartPosition}');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -502,10 +499,7 @@ class AppState extends ChangeNotifier {
|
||||
final distance = Distance();
|
||||
final distanceMoved = distance.as(LengthUnit.Meter, _tutorialStartPosition!, newPosition);
|
||||
|
||||
debugPrint('[AppState] Tutorial movement check: ${distanceMoved.toStringAsFixed(2)}m (need ${kPositioningTutorialMinMovementMeters}m)');
|
||||
|
||||
if (distanceMoved >= kPositioningTutorialMinMovementMeters) {
|
||||
debugPrint('[AppState] Tutorial completed! Calling callback and marking as complete');
|
||||
// Tutorial completed! Mark as complete and notify callback immediately
|
||||
final callback = _tutorialCompletionCallback;
|
||||
clearTutorialCallback();
|
||||
|
||||
@@ -66,9 +66,7 @@ class _AddNodeSheetState extends State<AddNodeSheet> {
|
||||
}
|
||||
|
||||
void _hideTutorial() {
|
||||
debugPrint('[AddNodeSheet] Tutorial completion callback triggered');
|
||||
if (mounted && _showTutorial) {
|
||||
debugPrint('[AddNodeSheet] Hiding tutorial overlay');
|
||||
setState(() {
|
||||
_showTutorial = false;
|
||||
});
|
||||
|
||||
@@ -51,9 +51,7 @@ class _EditNodeSheetState extends State<EditNodeSheet> {
|
||||
}
|
||||
|
||||
void _hideTutorial() {
|
||||
debugPrint('[EditNodeSheet] Tutorial completion callback triggered');
|
||||
if (mounted && _showTutorial) {
|
||||
debugPrint('[EditNodeSheet] Hiding tutorial overlay');
|
||||
setState(() {
|
||||
_showTutorial = false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user