app tour bug fixed

This commit is contained in:
Kalonkarthik 2025-03-13 15:01:19 +05:30
parent ef761a8d0a
commit b9c940ef4f
3 changed files with 20 additions and 9 deletions

View File

@ -508,6 +508,7 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
final double screenHeight = MediaQuery.of(context).size.height; final double screenHeight = MediaQuery.of(context).size.height;
marriageTargets = [ marriageTargets = [
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'cardKey', identify: 'cardKey',
keyTarget: cardKey, keyTarget: cardKey,
shape: ShapeLightFocus.RRect, shape: ShapeLightFocus.RRect,
@ -671,6 +672,7 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
], ],
), ),
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'BookMarkKey', identify: 'BookMarkKey',
keyTarget: bookMarkKey, keyTarget: bookMarkKey,
shape: ShapeLightFocus.RRect, shape: ShapeLightFocus.RRect,
@ -837,6 +839,7 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
final double screenHeight = MediaQuery.of(context).size.height; final double screenHeight = MediaQuery.of(context).size.height;
previousMarriageTargets = [ previousMarriageTargets = [
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'BookMarkKey', identify: 'BookMarkKey',
keyTarget: bookMarkKey, keyTarget: bookMarkKey,
shape: ShapeLightFocus.RRect, shape: ShapeLightFocus.RRect,
@ -996,6 +999,7 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
], ],
), ),
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'cardKey', identify: 'cardKey',
keyTarget: cardKey, keyTarget: cardKey,
shape: ShapeLightFocus.RRect, shape: ShapeLightFocus.RRect,

View File

@ -403,10 +403,10 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
debugPrint('Home Tutorial Finished'); debugPrint('Home Tutorial Finished');
locale.languageCode == 'ar' locale.languageCode == 'ar'
? context.go( ? context.go(
'/chartScreen/hotels?bgColor=0xFF90B0D5&mainTopic=null&title=المنشآت الفندقية', '/chartScreen/marriages?bgColor=0xFFAA8E83&mainTopic=اجتماعي&title=الزواج&key=home',
) )
: context.go( : context.go(
'/chartScreen/hotels?bgColor=0xFF90B0D5&mainTopic=ECONOMY&title=Hotel+Establishments', '/chartScreen/marriages?bgColor=0xFFAA8E83&mainTopic=null&title=Marriages',
); );
}, },
)..show(context: context); )..show(context: context);
@ -423,10 +423,10 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
debugPrint('Previous Home Tutorial Finished'); debugPrint('Previous Home Tutorial Finished');
locale.languageCode == 'ar' locale.languageCode == 'ar'
? context.go( ? context.go(
'/chartScreen/hotels?bgColor=0xFF90B0D5&mainTopic=null&title=المنشآت الفندقية', '/chartScreen/marriages?bgColor=0xFFAA8E83&mainTopic=اجتماعي&title=الزواج&key=home',
) )
: context.go( : context.go(
'/chartScreen/hotels?bgColor=0xFF90B0D5&mainTopic=ECONOMY&title=Hotel+Establishments', '/chartScreen/marriages?bgColor=0xFFAA8E83&mainTopic=null&title=Marriages',
); );
}, },
)..show(context: context); )..show(context: context);
@ -437,6 +437,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
final double screenWidth = MediaQuery.of(context).size.width; final double screenWidth = MediaQuery.of(context).size.width;
homeTargets = [ homeTargets = [
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'cardTopicKey', identify: 'cardTopicKey',
keyTarget: cardTopicKey, keyTarget: cardTopicKey,
shape: ShapeLightFocus.RRect, shape: ShapeLightFocus.RRect,
@ -557,6 +558,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
], ],
), ),
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'cardsKey', identify: 'cardsKey',
keyTarget: cardsKey, keyTarget: cardsKey,
shape: ShapeLightFocus.RRect, shape: ShapeLightFocus.RRect,
@ -730,6 +732,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
final double screenWidth = MediaQuery.of(context).size.width; final double screenWidth = MediaQuery.of(context).size.width;
previousHomeTargets = [ previousHomeTargets = [
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'cardsKey', identify: 'cardsKey',
keyTarget: cardsKey, keyTarget: cardsKey,
shape: ShapeLightFocus.RRect, shape: ShapeLightFocus.RRect,
@ -827,10 +830,10 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
.state = false; .state = false;
locale.languageCode == 'ar' locale.languageCode == 'ar'
? context.go( ? context.go(
'/chartScreen/hotels?bgColor=0xFF90B0D5&mainTopic=null&title=المنشآت الفندقية', '/chartScreen/marriages?bgColor=0xFFAA8E83&mainTopic=اجتماعي&title=الزواج&key=home',
) )
: context.go( : context.go(
'/chartScreen/hotels?bgColor=0xFF90B0D5&mainTopic=ECONOMY&title=Hotel+Establishments', '/chartScreen/marriages?bgColor=0xFFAA8E83&mainTopic=null&title=Marriages',
); );
} else { } else {
tutorialCoachMark.next(); tutorialCoachMark.next();
@ -870,7 +873,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
chartsTourProvider.notifier) chartsTourProvider.notifier)
.state = false; .state = false;
context.go( context.go(
'/chartScreen/hotels?bgColor=0xFF90B0D5&mainTopic=ECONOMY&title=Hotel+Establishments'); '/chartScreen/marriages?bgColor=0xFFAA8E83&mainTopic=null&title=Marriages');
} }
}, },
), ),
@ -911,6 +914,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
], ],
), ),
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'cardTopicKey', identify: 'cardTopicKey',
keyTarget: cardTopicKey, keyTarget: cardTopicKey,
shape: ShapeLightFocus.RRect, shape: ShapeLightFocus.RRect,

View File

@ -141,6 +141,7 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
final double screenHeight = MediaQuery.of(context).size.height; final double screenHeight = MediaQuery.of(context).size.height;
appBarTargets = [ appBarTargets = [
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'bottomNav', identify: 'bottomNav',
keyTarget: bottomNavKey, keyTarget: bottomNavKey,
shape: ShapeLightFocus.RRect, // Rounded rectangle highlight shape: ShapeLightFocus.RRect, // Rounded rectangle highlight
@ -232,7 +233,7 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
.notifier) .notifier)
.state = false; .state = false;
context.go( context.go(
'/chartScreen/hotels?bgColor=0xFF90B0D5&mainTopic=ECONOMY&title=Hotel+Establishments', '/chartScreen/marriages?bgColor=0xFFAA8E83&mainTopic=null&title=Marriages',
); );
} }
}, },
@ -265,7 +266,7 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
.notifier) .notifier)
.state = false; .state = false;
context.go( context.go(
'/chartScreen/hotels?bgColor=0xFF90B0D5&mainTopic=ECONOMY&title=Hotel+Establishments', '/chartScreen/marriages?bgColor=0xFFAA8E83&mainTopic=اجتماعي&title=الزواج&key=home',
); );
} else { } else {
tutorialCoachMark.next(); tutorialCoachMark.next();
@ -287,6 +288,7 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
], ],
), ),
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'drawerKey', identify: 'drawerKey',
keyTarget: drawerKey, keyTarget: drawerKey,
shape: ShapeLightFocus.RRect, shape: ShapeLightFocus.RRect,
@ -450,6 +452,7 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
], ],
), ),
TargetFocus( TargetFocus(
enableTargetTab: false,
identify: 'toggleKey', identify: 'toggleKey',
keyTarget: toggleKey, keyTarget: toggleKey,
shape: ShapeLightFocus.RRect, shape: ShapeLightFocus.RRect,