Skip to content

Commit f0160f9

Browse files
committed
clean code
1 parent 32ca575 commit f0160f9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

example/lib/Providers/fs_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class FSData extends ChangeNotifier {
6565
}
6666

6767
class UserData extends ChangeNotifier {
68-
String _visitorId = "flutter_user" + Random().nextInt(100).toString();
68+
String _visitorId = "flutter_user" + Random().nextInt(10000).toString();
6969

7070
Map<String, Object> context = {
7171
"testing_tracking_manager": true,

lib/emotionAi/fs_emotion.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class EmotionAI {
3737
final Map<int, List<Map<String, dynamic>>> pointerPaths = {};
3838
final Map<int, DateTime> pointerDownTimes = {};
3939

40-
// -- Threshold for "tap" - "scroll/drag"
40+
// Threshold "tap" - "scroll/drag"
4141
static const double kTouchSlop = 18.0;
4242

4343
// Delegate
@@ -107,8 +107,8 @@ class EmotionAI {
107107
// If the distance over the threshold, then will consider it as scroll
108108
if (distance > kTouchSlop) {
109109
hasScrolled[event.pointer] = true;
110-
Flagship.logger(Level.DEBUG,
111-
"Pointer ${event.pointer}: Scroll/Drag détecté (distance > $kTouchSlop)");
110+
// Flagship.logger(Level.DEBUG,
111+
// "Pointer ${event.pointer}: Scroll/Drag détecté (distance > $kTouchSlop)");
112112
}
113113
}
114114
}
@@ -224,7 +224,7 @@ class EmotionAI {
224224
} catch (e) {
225225
Flagship.logger(Level.EXCEPTIONS, e.toString());
226226
}
227-
Flagship.logger(Level.INFO, "The emotionAI collection is stopped");
227+
Flagship.logger(Level.INFO, "The emotionAI collection is Stopped");
228228
}
229229

230230
sendEvent(Hit event, double deltaTime) {
@@ -234,8 +234,7 @@ class EmotionAI {
234234
sendEmotionEvent(event);
235235
} else if (deltaTime <= FSAIDuration120) {
236236
sendEmotionEvent(event);
237-
Flagship.logger(
238-
Level.INFO, "Send last emotion event and stop the collect");
237+
Flagship.logger(Level.INFO, "Send last emotion event and STOP collect");
239238
stopCollecting();
240239
// Start get scoring from remote
241240
pollingScore = PollingScore(
@@ -249,7 +248,8 @@ class EmotionAI {
249248
this.currentScreenName = screenName;
250249
FSEmotionPageView eventPage = FSEmotionPageView(this.currentScreenName);
251250
this.sendEmotionEvent(eventPage).whenComplete(() {
252-
Flagship.logger(Level.INFO, "Send pageview when app change screen");
251+
Flagship.logger(
252+
Level.INFO, "Send pageview when Application change screen");
253253
});
254254
}
255255

0 commit comments

Comments
 (0)