WT1.1.10+5 bugfix
This commit is contained in:
@@ -113,8 +113,11 @@ mixin Common {
|
||||
}
|
||||
|
||||
static Widget badgedIcon(Color color, IconData icon, String badgeKey) {
|
||||
bool show = Cache().getBadges()[badgeKey] != null;
|
||||
int counter = Cache().getBadges()[badgeKey] != null ? Cache().getBadges()[badgeKey] : 0;
|
||||
//print("BadgetIcon: " + Cache().getBadges().toString());
|
||||
int badgeValue = Cache().getBadges()[badgeKey];
|
||||
bool show = (badgeValue != null);
|
||||
int counter = show ? badgeValue : 0;
|
||||
//print("show $show BadgeKey $badgeKey count $counter");
|
||||
return Badge(
|
||||
position: BadgePosition.topEnd(top: -10, end: -10),
|
||||
animationDuration: Duration(milliseconds: 500),
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:aitrainer_app/service/tracking_service.dart';
|
||||
import 'package:aitrainer_app/util/enums.dart';
|
||||
import 'package:flurry/flurry.dart';
|
||||
import 'package:aitrainer_app/model/tracking.dart' as model;
|
||||
import 'package:smartlook/smartlook.dart';
|
||||
|
||||
class Track with Logging {
|
||||
static final Track _singleton = Track._internal();
|
||||
@@ -18,6 +19,7 @@ class Track with Logging {
|
||||
void track(TrackingEvent event, {String eventValue = ""}) {
|
||||
if (!isInDebugMode) {
|
||||
Flurry.logEvent(event.toString());
|
||||
Smartlook.setGlobalEventProperty(event.toString(), eventValue, false);
|
||||
model.Tracking tracking = model.Tracking();
|
||||
tracking.customerId = Cache().userLoggedIn.customerId;
|
||||
tracking.event = event.enumToString();
|
||||
|
||||
Reference in New Issue
Block a user