Merge branch 'dev' of github.com:VinistanSS/FCSC into dev
This commit is contained in:
commit
ec156e49dc
@ -1,6 +1,6 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="main.dart" type="FlutterRunConfigurationType" factoryName="Flutter">
|
<configuration default="false" name="main.dart" type="FlutterRunConfigurationType" factoryName="Flutter">
|
||||||
<option name="filePath" value="$PROJECT_DIR$/frontend/lib/main.dart" />
|
<option name="filePath" value="$PROJECT_DIR$/lib/main.dart" />
|
||||||
<method v="2" />
|
<method v="2" />
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
BIN
assets/app_tour/right_down.png
Normal file
BIN
assets/app_tour/right_down.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@ -316,6 +316,7 @@ import '../presentation/Screens/demo_home.dart';
|
|||||||
import '../presentation/Screens/profilepage.dart';
|
import '../presentation/Screens/profilepage.dart';
|
||||||
import '../presentation/routes/auth_routes/login_route.dart';
|
import '../presentation/routes/auth_routes/login_route.dart';
|
||||||
import '../presentation/routes/bottom_bar_routes/tab_routes/home_route.dart';
|
import '../presentation/routes/bottom_bar_routes/tab_routes/home_route.dart';
|
||||||
|
import 'package:uae_stat/presentation/routes/drawer_routes/Drawer%20Items/bookmark.dart';
|
||||||
import '../presentation/routes/drawer_routes/Drawer Items/edit_profile.dart';
|
import '../presentation/routes/drawer_routes/Drawer Items/edit_profile.dart';
|
||||||
import '../presentation/routes/drawer_routes/Drawer Items/feedback.dart';
|
import '../presentation/routes/drawer_routes/Drawer Items/feedback.dart';
|
||||||
import '../presentation/routes/drawer_routes/Drawer Items/user_guide/faq_page.dart';
|
import '../presentation/routes/drawer_routes/Drawer Items/user_guide/faq_page.dart';
|
||||||
@ -471,6 +472,10 @@ final GoRouter router = GoRouter(
|
|||||||
path: '/editProfile',
|
path: '/editProfile',
|
||||||
builder: (context, state) => EditProfile(),
|
builder: (context, state) => EditProfile(),
|
||||||
),
|
),
|
||||||
|
GoRoute(
|
||||||
|
path: '/bookmark',
|
||||||
|
builder: (context, state) => BookMark(),
|
||||||
|
),
|
||||||
GoRoute(
|
GoRoute(
|
||||||
path: '/manageuser',
|
path: '/manageuser',
|
||||||
builder: (context, state) => ManageUserRouter(),
|
builder: (context, state) => ManageUserRouter(),
|
||||||
|
|||||||
@ -92,6 +92,6 @@
|
|||||||
"economy": "Access detailed statistics and drill-down pages for KPIs in the Economy category to uncover key trends and metrics.",
|
"economy": "Access detailed statistics and drill-down pages for KPIs in the Economy category to uncover key trends and metrics.",
|
||||||
"bookMark": "Bookmark important KPIs or datasets for quick and easy access anytime through the Bookmarks section.",
|
"bookMark": "Bookmark important KPIs or datasets for quick and easy access anytime through the Bookmarks section.",
|
||||||
"toggle": "Switch between English and Arabic using the language toggle at the top-right corner for a bilingual experience.",
|
"toggle": "Switch between English and Arabic using the language toggle at the top-right corner for a bilingual experience.",
|
||||||
"tour_navBar": "Use the navigation bar to quickly access Profile, Feedback, User Guide, Notifications, and other key app features.",
|
"tour_navBar": "Access dedicated pages and additional features by selecting options from the Main Menu.",
|
||||||
"mainMenu": "Access dedicated pages and additional features by selecting options from the Main Menu."
|
"mainMenu": "Use the navigation bar to quickly access Profile, Feedback, User Guide, Notifications, and other key app features."
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,13 +2,16 @@ import 'package:flutter/foundation.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
|
import 'package:tutorial_coach_mark/tutorial_coach_mark.dart';
|
||||||
import 'package:uae_stat/domain/use_cases/language.dart';
|
import 'package:uae_stat/domain/use_cases/language.dart';
|
||||||
import 'package:uae_stat/infrastructure/services/img_asset_paths/icons/uae_numbers_asset_path.dart';
|
import 'package:uae_stat/infrastructure/services/img_asset_paths/icons/uae_numbers_asset_path.dart';
|
||||||
import 'package:uae_stat/presentation/Screens/charts/services/api_service.dart';
|
import 'package:uae_stat/presentation/Screens/charts/services/api_service.dart';
|
||||||
import 'package:uae_stat/presentation/Screens/charts/widgets/chart_widget.dart';
|
import 'package:uae_stat/presentation/Screens/charts/widgets/chart_widget.dart';
|
||||||
import 'package:uae_stat/presentation/components/indicators/locale_provider.dart';
|
import 'package:uae_stat/presentation/components/indicators/locale_provider.dart';
|
||||||
import 'package:uae_stat/presentation/components/my_toggle.dart';
|
import 'package:uae_stat/presentation/components/my_toggle.dart';
|
||||||
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
|
|
||||||
|
import 'package:uae_stat/presentation/Screens/app_tour/Target_content.dart';
|
||||||
import '../filters/search_filter_helper.dart';
|
import '../filters/search_filter_helper.dart';
|
||||||
|
|
||||||
class ChartScreen1 extends ConsumerStatefulWidget {
|
class ChartScreen1 extends ConsumerStatefulWidget {
|
||||||
@ -52,6 +55,12 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
|
|||||||
int _activeTabIndex = 0;
|
int _activeTabIndex = 0;
|
||||||
|
|
||||||
dynamic _tabsData = [];
|
dynamic _tabsData = [];
|
||||||
|
late List<TargetFocus> marriageTargets;
|
||||||
|
late List<TargetFocus> previousMarriageTargets;
|
||||||
|
late TutorialCoachMark tutorialCoachMark;
|
||||||
|
final GlobalKey chartKey = GlobalKey();
|
||||||
|
final GlobalKey bookMarkKey = GlobalKey();
|
||||||
|
final GlobalKey cardKey= GlobalKey();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@ -66,6 +75,715 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
|
|||||||
onTabSelected(_tabsData[0]['id']);
|
onTabSelected(_tabsData[0]['id']);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
|
_startTutorialAfterRender();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleSkip() {
|
||||||
|
tutorialCoachMark.skip();
|
||||||
|
debugPrint('Skip clicked');
|
||||||
|
ref.read(chartsTourProvider.notifier).state = true;
|
||||||
|
ref.read(previousChartsTourProvider.notifier).state = true;
|
||||||
|
ref.read(homeTourProvider.notifier).state = true;
|
||||||
|
ref.read( previousHomeTourProvider.notifier).state = true;
|
||||||
|
ref.read(scaffoldTourProvider.notifier).state = true;
|
||||||
|
ref.read(previousScaffoldTourProvider.notifier).state = true;
|
||||||
|
context.go('/myhomepage');
|
||||||
|
}
|
||||||
|
|
||||||
|
void _kpiTutorialCoachMark() {
|
||||||
|
debugPrint('Not Initialized and Started');
|
||||||
|
// _calculateMarkPosition();
|
||||||
|
_initmarriageTargets();
|
||||||
|
debugPrint('Initialized and Started');
|
||||||
|
tutorialCoachMark = TutorialCoachMark(
|
||||||
|
paddingFocus: 0,
|
||||||
|
useSafeArea: true,
|
||||||
|
|
||||||
|
pulseEnable: false,
|
||||||
|
hideSkip: true,
|
||||||
|
targets: marriageTargets,
|
||||||
|
onFinish: () {
|
||||||
|
context.go('/myhomepage');
|
||||||
|
debugPrint('Marriage Tutorial Finished');
|
||||||
|
},
|
||||||
|
|
||||||
|
)..show(context: context);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void _startTutorialAfterRender() {
|
||||||
|
final chartTour = ref.watch(chartsTourProvider);
|
||||||
|
final previousChartTour = ref.watch(previousChartsTourProvider);
|
||||||
|
debugPrint('render problem');
|
||||||
|
if (cardKey.currentContext != null && !chartTour) {
|
||||||
|
_kpiTutorialCoachMark();
|
||||||
|
} else if(cardKey.currentContext != null && !previousChartTour) {
|
||||||
|
_previousKpiTutorial();
|
||||||
|
}
|
||||||
|
else if (!chartTour || !previousChartTour){
|
||||||
|
Future.delayed(Duration(milliseconds: 100), _startTutorialAfterRender);
|
||||||
|
}else{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void _previousKpiTutorial() {
|
||||||
|
_initpreviousTargets();
|
||||||
|
tutorialCoachMark = TutorialCoachMark(
|
||||||
|
paddingFocus: 0,
|
||||||
|
useSafeArea: true,
|
||||||
|
pulseEnable: false,
|
||||||
|
hideSkip: true,
|
||||||
|
targets: previousMarriageTargets,
|
||||||
|
onFinish: () {
|
||||||
|
context.go('/myhomepage');
|
||||||
|
debugPrint('Previous Marriage Tutorial Finished');
|
||||||
|
},
|
||||||
|
|
||||||
|
)..show(context: context);
|
||||||
|
|
||||||
|
}
|
||||||
|
void _initmarriageTargets(){
|
||||||
|
final double screenWidth= MediaQuery.of(context).size.width;
|
||||||
|
final double screenHeight= MediaQuery.of(context).size.height;
|
||||||
|
marriageTargets=[
|
||||||
|
TargetFocus(
|
||||||
|
identify: 'cardKey',
|
||||||
|
keyTarget: cardKey,
|
||||||
|
shape: ShapeLightFocus.RRect,
|
||||||
|
radius: 8,
|
||||||
|
paddingFocus: 0,
|
||||||
|
contents: [
|
||||||
|
createTargetContent(
|
||||||
|
text: AppLocalizations.of(context)!.kpiCards,
|
||||||
|
alignment: ContentAlign.top,
|
||||||
|
gap:55,
|
||||||
|
space: 0,
|
||||||
|
),
|
||||||
|
TargetContent(
|
||||||
|
align: ContentAlign.bottom,
|
||||||
|
child: SizedBox(
|
||||||
|
width: double.infinity,
|
||||||
|
height: MediaQuery.of(context).size.height*0.3,
|
||||||
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Positioned(
|
||||||
|
bottom: 55,
|
||||||
|
left: 16,
|
||||||
|
right: 16,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Align(
|
||||||
|
alignment: Alignment.bottomRight,
|
||||||
|
child:Padding(
|
||||||
|
padding: EdgeInsets.only(right:10),
|
||||||
|
child:Text(
|
||||||
|
'3/7',
|
||||||
|
style: const TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
) ,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 5),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () => handleSkip(),
|
||||||
|
style: ElevatedButton.styleFrom(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
),
|
||||||
|
side: const BorderSide(color: Colors.white),
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
elevation: 0,
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
|
'Skip',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
border: Border.all(color: Colors.white, width: 2.0),
|
||||||
|
),
|
||||||
|
child: IconButton(
|
||||||
|
iconSize: 20,
|
||||||
|
icon: const Icon(Icons.arrow_back, color: Colors.white),
|
||||||
|
onPressed: () {
|
||||||
|
ref.read(chartsTourProvider.notifier).state=true;
|
||||||
|
ref.read(previousHomeTourProvider.notifier).state=false;
|
||||||
|
tutorialCoachMark.finish();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 10),
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: Color(0xFF7DAFBC),
|
||||||
|
border: Border.all(color:Color(0xFF7DAFBC), width: 1.5),
|
||||||
|
),
|
||||||
|
child: IconButton(
|
||||||
|
iconSize: 20,
|
||||||
|
icon: const Icon(Icons.arrow_forward, color: Colors.white),
|
||||||
|
onPressed: () {
|
||||||
|
tutorialCoachMark.next();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
TargetContent(
|
||||||
|
padding: EdgeInsets.only(bottom: 0,top : 0,),
|
||||||
|
align: ContentAlign.top,
|
||||||
|
child: SizedBox(
|
||||||
|
width: MediaQuery.of(context).size.width,
|
||||||
|
height:MediaQuery.of(context).size.height*0.69 ,
|
||||||
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Positioned(
|
||||||
|
left: MediaQuery.of(context).size.width*0.40,
|
||||||
|
bottom: 0,
|
||||||
|
child: Image.asset(
|
||||||
|
'assets/app_tour/leftUp.png',
|
||||||
|
width: 100,
|
||||||
|
height: 90,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
// TargetFocus(
|
||||||
|
// identify: 'chartKey',
|
||||||
|
// keyTarget: chartKey,
|
||||||
|
// shape: ShapeLightFocus.RRect,
|
||||||
|
// paddingFocus: 0,
|
||||||
|
// contents: [
|
||||||
|
// createTargetContent(
|
||||||
|
// text: AppLocalizations.of(context)!.kpiCards,
|
||||||
|
// alignment: ContentAlign.top,
|
||||||
|
// gap:0,
|
||||||
|
// space: 0,
|
||||||
|
// ),
|
||||||
|
// TargetContent(
|
||||||
|
// align: ContentAlign.bottom,
|
||||||
|
// child: SizedBox(
|
||||||
|
// width: double.infinity,
|
||||||
|
// height: MediaQuery.of(context).size.height *
|
||||||
|
// 0.30, // Set an appropriate height for the Stack
|
||||||
|
// child: Stack(
|
||||||
|
// children: [
|
||||||
|
// Positioned(
|
||||||
|
// bottom: 25,
|
||||||
|
// left: 16,
|
||||||
|
// right: 16,
|
||||||
|
// child: Row(
|
||||||
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
// children: [
|
||||||
|
// ElevatedButton(
|
||||||
|
// onPressed: () => handleSkip(),
|
||||||
|
// style: ElevatedButton.styleFrom(
|
||||||
|
// shape: RoundedRectangleBorder(
|
||||||
|
// borderRadius: BorderRadius.circular(12),
|
||||||
|
// ),
|
||||||
|
// side: const BorderSide(color: Colors.white),
|
||||||
|
// backgroundColor: Colors.transparent,
|
||||||
|
// elevation: 0,
|
||||||
|
// ),
|
||||||
|
// child: const Text(
|
||||||
|
// 'Skip',
|
||||||
|
// style: TextStyle(
|
||||||
|
// color: Colors.white,
|
||||||
|
// fontSize: 14,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// Column(
|
||||||
|
// children: [
|
||||||
|
// Text(
|
||||||
|
// '5/7',
|
||||||
|
// style: const TextStyle(
|
||||||
|
// color: Colors.white,
|
||||||
|
// fontSize: 14,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// const SizedBox(height: 3),
|
||||||
|
// Row(
|
||||||
|
// children: [
|
||||||
|
// Container(
|
||||||
|
// decoration: BoxDecoration(
|
||||||
|
// shape: BoxShape.circle,
|
||||||
|
// border: Border.all(
|
||||||
|
// color: Colors.white, width: 2.0),
|
||||||
|
// ),
|
||||||
|
// child: IconButton(
|
||||||
|
// icon: const Icon(Icons.arrow_back,
|
||||||
|
// color: Colors.white),
|
||||||
|
// onPressed: () {
|
||||||
|
// scrollToTargetThenShowTutorial(bookMarkKey);
|
||||||
|
// tutorialCoachMark.next();
|
||||||
|
// },
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// const SizedBox(width: 10),
|
||||||
|
// Container(
|
||||||
|
// decoration: BoxDecoration(
|
||||||
|
// shape: BoxShape.circle,
|
||||||
|
// color: Color(0xFF7DAFBC),
|
||||||
|
// border: Border.all(
|
||||||
|
// color: Color(0xFF7DAFBC), width: 1.5),
|
||||||
|
// ),
|
||||||
|
// child: IconButton(
|
||||||
|
// icon: const Icon(Icons.arrow_forward,
|
||||||
|
// color: Colors.white),
|
||||||
|
// onPressed: () {
|
||||||
|
// tutorialCoachMark.next();
|
||||||
|
// },
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ],
|
||||||
|
// ),
|
||||||
|
// ],
|
||||||
|
// ),
|
||||||
|
// ],
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ],
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ],
|
||||||
|
// ),
|
||||||
|
TargetFocus(
|
||||||
|
identify: 'BookMarkKey',
|
||||||
|
keyTarget: bookMarkKey,
|
||||||
|
shape: ShapeLightFocus.RRect,
|
||||||
|
radius: 8,
|
||||||
|
paddingFocus: 12,
|
||||||
|
contents: [
|
||||||
|
createTargetContent(
|
||||||
|
text: AppLocalizations.of(context)!.bookMark,
|
||||||
|
alignment: ContentAlign.bottom,
|
||||||
|
gap: 53,
|
||||||
|
space: 50,
|
||||||
|
),
|
||||||
|
TargetContent(
|
||||||
|
align: ContentAlign.bottom,
|
||||||
|
child: SizedBox(
|
||||||
|
width: double.infinity,
|
||||||
|
height: MediaQuery.of(context).size.height*0.60,
|
||||||
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Positioned(
|
||||||
|
bottom: 55,
|
||||||
|
left: 16,
|
||||||
|
right: 16,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Align(
|
||||||
|
alignment: Alignment.bottomRight,
|
||||||
|
child: Padding(padding: EdgeInsets.only(right: 10),
|
||||||
|
child: Text(
|
||||||
|
'4/7',
|
||||||
|
style: const TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 5),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () => handleSkip(),
|
||||||
|
style: ElevatedButton.styleFrom(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
),
|
||||||
|
side: const BorderSide(color: Colors.white),
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
elevation: 0,
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
|
'Skip',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
border: Border.all(color: Colors.white, width: 2.0),
|
||||||
|
),
|
||||||
|
child: IconButton(
|
||||||
|
iconSize: 20,
|
||||||
|
icon: const Icon(Icons.arrow_back, color: Colors.white),
|
||||||
|
onPressed: () {
|
||||||
|
tutorialCoachMark.previous();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 10),
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: Color(0xFF7DAFBC),
|
||||||
|
border: Border.all(color: Color(0xFF7DAFBC), width: 1),
|
||||||
|
),
|
||||||
|
child: IconButton(
|
||||||
|
iconSize: 20,
|
||||||
|
icon: const Icon(Icons.arrow_forward, color: Colors.white),
|
||||||
|
onPressed: () {
|
||||||
|
ref.read(chartsTourProvider.notifier).state=true;
|
||||||
|
ref.read(scaffoldTourProvider.notifier).state=false;
|
||||||
|
tutorialCoachMark.finish();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
TargetContent(
|
||||||
|
padding: EdgeInsets.only(left:0, top:0),
|
||||||
|
align: ContentAlign.right,
|
||||||
|
child: Container(
|
||||||
|
width: screenWidth/4,
|
||||||
|
height: screenHeight,
|
||||||
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Image.asset(
|
||||||
|
'assets/app_tour/leftDown.png',
|
||||||
|
fit: BoxFit.contain,
|
||||||
|
),
|
||||||
|
// Positioned(
|
||||||
|
// top: 0,
|
||||||
|
// left: MediaQuery.of(context).size.width* 0.5,
|
||||||
|
// child: SizedBox(
|
||||||
|
// width: 50,
|
||||||
|
// height: 100,
|
||||||
|
// child: Image.asset(
|
||||||
|
// 'assets/app_tour/bookmark2.png',
|
||||||
|
// fit: BoxFit.contain,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
void _initpreviousTargets(){
|
||||||
|
final double screenWidth= MediaQuery.of(context).size.width;
|
||||||
|
final double screenHeight= MediaQuery.of(context).size.height;
|
||||||
|
previousMarriageTargets=[
|
||||||
|
TargetFocus(
|
||||||
|
identify: 'BookMarkKey',
|
||||||
|
keyTarget: bookMarkKey,
|
||||||
|
shape: ShapeLightFocus.RRect,
|
||||||
|
radius: 8,
|
||||||
|
paddingFocus: 12,
|
||||||
|
contents: [
|
||||||
|
createTargetContent(
|
||||||
|
text: AppLocalizations.of(context)!.bookMark,
|
||||||
|
space: 50,
|
||||||
|
alignment: ContentAlign.bottom,
|
||||||
|
gap: 23,
|
||||||
|
),
|
||||||
|
TargetContent(
|
||||||
|
align: ContentAlign.bottom,
|
||||||
|
child: SizedBox(
|
||||||
|
width: double.infinity,
|
||||||
|
height: MediaQuery.of(context).size.height*0.60,
|
||||||
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Positioned(
|
||||||
|
bottom: 35,
|
||||||
|
left: 16,
|
||||||
|
right: 16,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Align(
|
||||||
|
alignment: Alignment.bottomRight,
|
||||||
|
child:Padding(
|
||||||
|
padding: const EdgeInsets.only(right: 10.0),
|
||||||
|
child: Text(
|
||||||
|
'4/7',
|
||||||
|
style: const TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 5),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () => handleSkip(),
|
||||||
|
style: ElevatedButton.styleFrom(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
),
|
||||||
|
side: const BorderSide(color: Colors.white),
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
elevation: 0,
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
|
'Skip',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
border: Border.all(color: Colors.white, width: 2.0),
|
||||||
|
),
|
||||||
|
child: IconButton(
|
||||||
|
iconSize: 20,
|
||||||
|
icon: const Icon(Icons.arrow_back, color: Colors.white),
|
||||||
|
onPressed: () {
|
||||||
|
tutorialCoachMark.next();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 10),
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: Color(0xFF7DAFBC),
|
||||||
|
border: Border.all(color:Color(0xFF7DAFBC), width: 1.5),
|
||||||
|
),
|
||||||
|
child: IconButton(
|
||||||
|
iconSize: 20,
|
||||||
|
icon: const Icon(Icons.arrow_forward, color: Colors.white),
|
||||||
|
onPressed: () {
|
||||||
|
ref.read(chartsTourProvider.notifier).state=true;
|
||||||
|
ref.read(scaffoldTourProvider.notifier).state=false;
|
||||||
|
tutorialCoachMark.finish();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
TargetContent(
|
||||||
|
padding: EdgeInsets.only(left:0, top: 10),
|
||||||
|
align: ContentAlign.right,
|
||||||
|
child: Container(
|
||||||
|
width: screenWidth/4,
|
||||||
|
height: screenHeight,
|
||||||
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Image.asset(
|
||||||
|
'assets/app_tour/leftDown.png',
|
||||||
|
fit: BoxFit.contain,
|
||||||
|
),
|
||||||
|
// Positioned(
|
||||||
|
// top: 0,
|
||||||
|
// left: MediaQuery.of(context).size.width* 0.5,
|
||||||
|
// child: SizedBox(
|
||||||
|
// width: 50,
|
||||||
|
// height: 100,
|
||||||
|
// child: Image.asset(
|
||||||
|
// 'assets/app_tour/bookmark2.png',
|
||||||
|
// fit: BoxFit.contain,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
TargetFocus(
|
||||||
|
identify: 'cardKey',
|
||||||
|
keyTarget: cardKey,
|
||||||
|
shape: ShapeLightFocus.RRect,
|
||||||
|
radius: 8,
|
||||||
|
paddingFocus: 0,
|
||||||
|
contents: [
|
||||||
|
createTargetContent(
|
||||||
|
text: AppLocalizations.of(context)!.kpiCards,
|
||||||
|
space: 0,
|
||||||
|
alignment: ContentAlign.top,
|
||||||
|
gap:50,
|
||||||
|
),
|
||||||
|
TargetContent(
|
||||||
|
align: ContentAlign.bottom,
|
||||||
|
child: SizedBox(
|
||||||
|
width: double.infinity,
|
||||||
|
height: MediaQuery.of(context).size.height*0.30,
|
||||||
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Positioned(
|
||||||
|
bottom: 55,
|
||||||
|
left: 16,
|
||||||
|
right: 16,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Align(alignment: Alignment.bottomRight,
|
||||||
|
child:Padding(
|
||||||
|
padding: const EdgeInsets.only(right:10.0),
|
||||||
|
child: Text(
|
||||||
|
'3/7',
|
||||||
|
style: const TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),),
|
||||||
|
const SizedBox(height: 5),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () => handleSkip(),
|
||||||
|
style: ElevatedButton.styleFrom(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
),
|
||||||
|
side: const BorderSide(color: Colors.white),
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
elevation: 0,
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
|
'Skip',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
border: Border.all(color: Colors.white, width: 2.0),
|
||||||
|
),
|
||||||
|
child: IconButton(
|
||||||
|
iconSize: 20,
|
||||||
|
icon: const Icon(Icons.arrow_back, color: Colors.white),
|
||||||
|
onPressed: () {
|
||||||
|
ref.read(previousChartsTourProvider.notifier).state=true;
|
||||||
|
ref.read(previousHomeTourProvider.notifier).state=false;
|
||||||
|
tutorialCoachMark.finish();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 10),
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: Color(0xFF7DAFBC),
|
||||||
|
border: Border.all(color:Color(0xFF7DAFBC), width: 1.5),
|
||||||
|
),
|
||||||
|
child: IconButton(
|
||||||
|
iconSize: 20,
|
||||||
|
icon: const Icon(Icons.arrow_forward, color: Colors.white),
|
||||||
|
onPressed: () {
|
||||||
|
tutorialCoachMark.previous();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
TargetContent(
|
||||||
|
padding: EdgeInsets.only(bottom: 0,top : 0,),
|
||||||
|
align: ContentAlign.top,
|
||||||
|
child: SizedBox(
|
||||||
|
width: MediaQuery.of(context).size.width,
|
||||||
|
height:MediaQuery.of(context).size.height*0.69 ,
|
||||||
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Positioned(
|
||||||
|
left: MediaQuery.of(context).size.width*0.40,
|
||||||
|
bottom: 0,
|
||||||
|
child: Image.asset(
|
||||||
|
'assets/app_tour/leftUp.png',
|
||||||
|
width: 100,
|
||||||
|
height: 90,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
void _scrollToIndex(int index) {
|
void _scrollToIndex(int index) {
|
||||||
@ -870,6 +1588,7 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
|
key: bookMarkKey,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
context.translate(
|
context.translate(
|
||||||
@ -975,6 +1694,7 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
|
|||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(3.34),
|
padding: const EdgeInsets.all(3.34),
|
||||||
child: GridView.builder(
|
child: GridView.builder(
|
||||||
|
key:cardKey,
|
||||||
itemCount: cardData.length,
|
itemCount: cardData.length,
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
physics: const NeverScrollableScrollPhysics(),
|
||||||
|
|||||||
@ -207,7 +207,7 @@ class EconomyStatsWidget extends ConsumerStatefulWidget {
|
|||||||
|
|
||||||
class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
||||||
List<dynamic> data = [];
|
List<dynamic> data = [];
|
||||||
final _pb = PocketBase('https://pb.venbait.in');
|
final _pb = PocketBase('https://pb.venbait.in');
|
||||||
bool isLoading = true;
|
bool isLoading = true;
|
||||||
|
|
||||||
final GlobalKey cardTopicKey = GlobalKey();
|
final GlobalKey cardTopicKey = GlobalKey();
|
||||||
@ -215,12 +215,11 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
late TutorialCoachMark tutorialCoachMark;
|
late TutorialCoachMark tutorialCoachMark;
|
||||||
late List<TargetFocus> homeTargets;
|
late List<TargetFocus> homeTargets;
|
||||||
late List<TargetFocus> previousHomeTargets;
|
late List<TargetFocus> previousHomeTargets;
|
||||||
Offset _imageCardPosition = Offset.zero;
|
Offset _imageCardPosition =Offset.zero;
|
||||||
Offset _imageTopicPosition = Offset.zero;
|
Offset _imageTopicPosition =Offset.zero;
|
||||||
|
|
||||||
void _calculateCardPosition() {
|
void _calculateCardPosition() {
|
||||||
final RenderBox cardRenderBox =
|
final RenderBox cardRenderBox = cardsKey.currentContext!.findRenderObject() as RenderBox;
|
||||||
cardsKey.currentContext!.findRenderObject() as RenderBox;
|
|
||||||
final Offset cardPosition = cardRenderBox.localToGlobal(Offset.zero);
|
final Offset cardPosition = cardRenderBox.localToGlobal(Offset.zero);
|
||||||
final Size cardSize = cardRenderBox.size;
|
final Size cardSize = cardRenderBox.size;
|
||||||
|
|
||||||
@ -236,10 +235,10 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
void handleSkip() {
|
void handleSkip() {
|
||||||
tutorialCoachMark.skip();
|
tutorialCoachMark.skip();
|
||||||
debugPrint('Skip clicked');
|
debugPrint('Skip clicked');
|
||||||
ref.read(chartsTourProvider.notifier).state = true;
|
ref.read(chartsTourProvider.notifier).state = true;
|
||||||
ref.read(previousChartsTourProvider.notifier).state = true;
|
ref.read(previousChartsTourProvider.notifier).state = true;
|
||||||
ref.read(homeTourProvider.notifier).state = true;
|
ref.read(homeTourProvider.notifier).state = true;
|
||||||
ref.read(previousHomeTourProvider.notifier).state = true;
|
ref.read( previousHomeTourProvider.notifier).state = true;
|
||||||
ref.read(scaffoldTourProvider.notifier).state = true;
|
ref.read(scaffoldTourProvider.notifier).state = true;
|
||||||
ref.read(previousScaffoldTourProvider.notifier).state = true;
|
ref.read(previousScaffoldTourProvider.notifier).state = true;
|
||||||
}
|
}
|
||||||
@ -291,10 +290,11 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
},
|
},
|
||||||
)..show(context: context);
|
)..show(context: context);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _initTarget() {
|
void _initTarget(){
|
||||||
homeTargets = [
|
homeTargets=[
|
||||||
TargetFocus(
|
TargetFocus(
|
||||||
identify: 'cardTopicKey',
|
identify: 'cardTopicKey',
|
||||||
keyTarget: cardTopicKey,
|
keyTarget: cardTopicKey,
|
||||||
@ -310,7 +310,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
align: ContentAlign.bottom,
|
align: ContentAlign.bottom,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: MediaQuery.of(context).size.height * 0.69,
|
height: MediaQuery.of(context).size.height*0.69,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Positioned(
|
Positioned(
|
||||||
@ -355,14 +355,12 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
color: Color(0xFF7DAFBC),
|
color: Color(0xFF7DAFBC),
|
||||||
border: Border.all(
|
border: Border.all(color: Color(0xFF7DAFBC), width: 1),
|
||||||
color: Color(0xFF7DAFBC), width: 1),
|
|
||||||
),
|
),
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
iconSize: 20,
|
iconSize: 20,
|
||||||
icon: const Icon(Icons.arrow_forward,
|
icon: const Icon(Icons.arrow_forward, color: Colors.white),
|
||||||
color: Colors.white),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
tutorialCoachMark.next();
|
tutorialCoachMark.next();
|
||||||
},
|
},
|
||||||
@ -383,18 +381,21 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
align: ContentAlign.bottom,
|
align: ContentAlign.bottom,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
height: MediaQuery.of(context).size.height * 0.69,
|
height:MediaQuery.of(context).size.height*0.69 ,
|
||||||
child: Stack(children: [
|
child: Stack(
|
||||||
Positioned(
|
children: [
|
||||||
left: MediaQuery.of(context).size.width * 0.4,
|
Positioned(
|
||||||
top: _imageCardPosition.dy - 29,
|
left: MediaQuery.of(context).size.width*0.4,
|
||||||
child: Image.asset(
|
top: _imageCardPosition.dy-29,
|
||||||
'assets/app_tour/down_right.png',
|
child: Image.asset(
|
||||||
width: 40,
|
'assets/app_tour/down_right.png',
|
||||||
height: 90,
|
width: 40,
|
||||||
),
|
height: 90,
|
||||||
),
|
),
|
||||||
]),
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -405,17 +406,17 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
shape: ShapeLightFocus.RRect,
|
shape: ShapeLightFocus.RRect,
|
||||||
contents: [
|
contents: [
|
||||||
createTargetContent(
|
createTargetContent(
|
||||||
text: AppLocalizations.of(context)!.economy,
|
text:AppLocalizations.of(context)!.economy,
|
||||||
alignment: ContentAlign.bottom,
|
alignment: ContentAlign.bottom,
|
||||||
gap: 0,
|
gap: 0,
|
||||||
space: 40,
|
space: 40,),
|
||||||
),
|
|
||||||
TargetContent(
|
TargetContent(
|
||||||
align: ContentAlign.bottom,
|
align: ContentAlign.bottom,
|
||||||
child: SizedBox(
|
child:
|
||||||
|
SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: MediaQuery.of(context).size.height *
|
height: MediaQuery.of(context).size.height *0.5, // Set an appropriate height for the Stack
|
||||||
0.5, // Set an appropriate height for the Stack
|
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Positioned(
|
Positioned(
|
||||||
@ -426,7 +427,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed: () => handleSkip,
|
onPressed: () =>handleSkip,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(12),
|
borderRadius: BorderRadius.circular(12),
|
||||||
@ -458,13 +459,11 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
border: Border.all(
|
border: Border.all(color: Colors.white, width: 2.0),
|
||||||
color: Colors.white, width: 2.0),
|
|
||||||
),
|
),
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
iconSize: 20,
|
iconSize: 20,
|
||||||
icon: const Icon(Icons.arrow_back,
|
icon: const Icon(Icons.arrow_back, color: Colors.white),
|
||||||
color: Colors.white),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
tutorialCoachMark.previous();
|
tutorialCoachMark.previous();
|
||||||
},
|
},
|
||||||
@ -475,13 +474,11 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
color: Color(0xFF7DAFBC),
|
color: Color(0xFF7DAFBC),
|
||||||
border: Border.all(
|
border: Border.all(color: Color(0xFF7DAFBC), width: 1),
|
||||||
color: Color(0xFF7DAFBC), width: 1),
|
|
||||||
),
|
),
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
iconSize: 20,
|
iconSize: 20,
|
||||||
icon: const Icon(Icons.arrow_forward,
|
icon: const Icon(Icons.arrow_forward, color: Colors.white),
|
||||||
color: Colors.white),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
tutorialCoachMark.next();
|
tutorialCoachMark.next();
|
||||||
},
|
},
|
||||||
@ -501,19 +498,22 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
TargetContent(
|
TargetContent(
|
||||||
align: ContentAlign.bottom,
|
align: ContentAlign.bottom,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width ,
|
||||||
height: MediaQuery.of(context).size.height * 0.69,
|
height:MediaQuery.of(context).size.height*0.69 ,
|
||||||
child: Stack(children: [
|
child: Stack(
|
||||||
Positioned(
|
children: [
|
||||||
left: MediaQuery.of(context).size.width * 0.40,
|
Positioned(
|
||||||
top: _imageTopicPosition.dy - 29,
|
left: MediaQuery.of(context).size.width*0.40,
|
||||||
child: Image.asset(
|
top: _imageTopicPosition.dy-29,
|
||||||
'assets/app_tour/down_right.png',
|
child: Image.asset(
|
||||||
width: 40,
|
'assets/app_tour/down_right.png',
|
||||||
height: 90,
|
width: 40,
|
||||||
),
|
height: 90,
|
||||||
),
|
),
|
||||||
]),
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -521,25 +521,24 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
void _initPreviousTarget() {
|
void _initPreviousTarget(){
|
||||||
previousHomeTargets = [
|
previousHomeTargets=[
|
||||||
TargetFocus(
|
TargetFocus(
|
||||||
identify: 'cardsKey',
|
identify: 'cardsKey',
|
||||||
keyTarget: cardsKey,
|
keyTarget: cardsKey,
|
||||||
shape: ShapeLightFocus.RRect,
|
shape: ShapeLightFocus.RRect,
|
||||||
contents: [
|
contents: [
|
||||||
createTargetContent(
|
createTargetContent(
|
||||||
text: AppLocalizations.of(context)!.economy,
|
text:AppLocalizations.of(context)!.economy,
|
||||||
alignment: ContentAlign.bottom,
|
alignment: ContentAlign.bottom,
|
||||||
gap: 0,
|
gap: 0,
|
||||||
space: 40,
|
space: 40,),
|
||||||
),
|
|
||||||
TargetContent(
|
TargetContent(
|
||||||
align: ContentAlign.bottom,
|
align: ContentAlign.bottom,
|
||||||
child: SizedBox(
|
child:
|
||||||
|
SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: MediaQuery.of(context).size.height *
|
height: MediaQuery.of(context).size.height *0.5, // Set an appropriate height for the Stack
|
||||||
0.5, // Set an appropriate height for the Stack
|
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Positioned(
|
Positioned(
|
||||||
@ -550,7 +549,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed: () => handleSkip(),
|
onPressed: () =>handleSkip(),
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(12),
|
borderRadius: BorderRadius.circular(12),
|
||||||
@ -582,12 +581,10 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
border: Border.all(
|
border: Border.all(color: Colors.white, width: 2.0),
|
||||||
color: Colors.white, width: 2.0),
|
|
||||||
),
|
),
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
icon: const Icon(Icons.arrow_back,
|
icon: const Icon(Icons.arrow_back, color: Colors.white),
|
||||||
color: Colors.white),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
tutorialCoachMark.next();
|
tutorialCoachMark.next();
|
||||||
},
|
},
|
||||||
@ -598,21 +595,14 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
color: Color(0xFF7DAFBC),
|
color: Color(0xFF7DAFBC),
|
||||||
border: Border.all(
|
border: Border.all(color: Color(0xFF7DAFBC), width: 1.5),
|
||||||
color: Color(0xFF7DAFBC), width: 1.5),
|
|
||||||
),
|
),
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
iconSize: 20,
|
iconSize: 20,
|
||||||
icon: const Icon(Icons.arrow_forward,
|
icon: const Icon(Icons.arrow_forward, color: Colors.white),
|
||||||
color: Colors.white),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
ref
|
ref.read(previousHomeTourProvider.notifier).state=true;
|
||||||
.read(
|
ref.read(chartsTourProvider.notifier).state=false;
|
||||||
previousHomeTourProvider.notifier)
|
|
||||||
.state = true;
|
|
||||||
ref
|
|
||||||
.read(chartsTourProvider.notifier)
|
|
||||||
.state = false;
|
|
||||||
tutorialCoachMark.finish();
|
tutorialCoachMark.finish();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -632,18 +622,21 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
align: ContentAlign.bottom,
|
align: ContentAlign.bottom,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
height: MediaQuery.of(context).size.height * 0.69,
|
height:MediaQuery.of(context).size.height*0.69 ,
|
||||||
child: Stack(children: [
|
child: Stack(
|
||||||
Positioned(
|
children: [
|
||||||
left: MediaQuery.of(context).size.width * 0.40,
|
Positioned(
|
||||||
top: _imageTopicPosition.dy - 29,
|
left: MediaQuery.of(context).size.width*0.40,
|
||||||
child: Image.asset(
|
top: _imageTopicPosition.dy-29,
|
||||||
'assets/app_tour/down_right.png',
|
child: Image.asset(
|
||||||
width: 40,
|
'assets/app_tour/down_right.png',
|
||||||
height: 90,
|
width: 40,
|
||||||
),
|
height: 90,
|
||||||
),
|
),
|
||||||
]),
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -654,7 +647,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
shape: ShapeLightFocus.RRect,
|
shape: ShapeLightFocus.RRect,
|
||||||
contents: [
|
contents: [
|
||||||
createTargetContent(
|
createTargetContent(
|
||||||
text: AppLocalizations.of(context)!.home_topic,
|
text:AppLocalizations.of(context)!.home_topic,
|
||||||
alignment: ContentAlign.bottom,
|
alignment: ContentAlign.bottom,
|
||||||
gap: 45,
|
gap: 45,
|
||||||
space: 40,
|
space: 40,
|
||||||
@ -663,7 +656,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
align: ContentAlign.bottom,
|
align: ContentAlign.bottom,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: MediaQuery.of(context).size.height * 0.69,
|
height: MediaQuery.of(context).size.height*0.69,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Positioned(
|
Positioned(
|
||||||
@ -711,13 +704,11 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
color: Color(0xFF7DAFBC),
|
color: Color(0xFF7DAFBC),
|
||||||
border: Border.all(
|
border: Border.all(color: Color(0xFF7DAFBC), width: 1.5),
|
||||||
color: Color(0xFF7DAFBC), width: 1.5),
|
|
||||||
),
|
),
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
iconSize: 20,
|
iconSize: 20,
|
||||||
icon: const Icon(Icons.arrow_forward,
|
icon: const Icon(Icons.arrow_forward, color: Colors.white),
|
||||||
color: Colors.white),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
tutorialCoachMark.previous();
|
tutorialCoachMark.previous();
|
||||||
},
|
},
|
||||||
@ -738,18 +729,21 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
align: ContentAlign.bottom,
|
align: ContentAlign.bottom,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
height: MediaQuery.of(context).size.height * 0.69,
|
height:MediaQuery.of(context).size.height*0.69 ,
|
||||||
child: Stack(children: [
|
child: Stack(
|
||||||
Positioned(
|
children: [
|
||||||
left: MediaQuery.of(context).size.width * 0.4,
|
Positioned(
|
||||||
top: _imageCardPosition.dy - 29,
|
left: MediaQuery.of(context).size.width*0.4,
|
||||||
child: Image.asset(
|
top: _imageCardPosition.dy-29,
|
||||||
'assets/app_tour/down_right.png',
|
child: Image.asset(
|
||||||
width: 40,
|
'assets/app_tour/down_right.png',
|
||||||
height: 90,
|
width: 40,
|
||||||
),
|
height: 90,
|
||||||
),
|
),
|
||||||
]),
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -757,52 +751,61 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
|
||||||
void initState() {
|
|
||||||
super.initState();
|
|
||||||
final locale = ref.read(localeProvider);
|
|
||||||
fetchData(locale?.languageCode ?? 'en');
|
|
||||||
_fetchUserData();
|
|
||||||
}
|
|
||||||
|
|
||||||
// @override
|
@override
|
||||||
// void didChangeDependencies() {
|
void initState() {
|
||||||
// super.didChangeDependencies();
|
super.initState();
|
||||||
// // Access the provider here
|
final locale = ref.read(localeProvider);
|
||||||
// final locale = ref.watch(localeProvider);
|
fetchData(locale?.languageCode ?? 'en');
|
||||||
// fetchData(locale); // Pass the locale to the fetchData method
|
_fetchUserData();
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// @override
|
||||||
|
// void didChangeDependencies() {
|
||||||
|
// super.didChangeDependencies();
|
||||||
|
// // Access the provider here
|
||||||
|
// final locale = ref.watch(localeProvider);
|
||||||
|
// fetchData(locale); // Pass the locale to the fetchData method
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
Future<String?> getUserId() async {
|
||||||
|
final prefs = await SharedPreferences.getInstance();
|
||||||
|
return prefs.getString('userId'); // Retrieve the userId
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Future<void> _fetchUserData() async {
|
||||||
|
try {
|
||||||
|
final userId = await getUserId();
|
||||||
|
print('EDIT PROFILE isPageLoad');
|
||||||
|
final adminAuth = await _pb.admins
|
||||||
|
.authWithPassword('pb@venbainfotech.com', 'pb@venbainfotech.com');
|
||||||
|
final adminToken = adminAuth.token;
|
||||||
|
print('adminToken- $adminToken');
|
||||||
|
final userDetailsResponse = await _pb.collection('users').getOne(
|
||||||
|
userId!,
|
||||||
|
headers: {
|
||||||
|
'Authorization': 'Bearer $adminToken',
|
||||||
|
},
|
||||||
|
);
|
||||||
|
final loginCount = userDetailsResponse.data['login_count'];
|
||||||
|
print(loginCount);
|
||||||
|
if (loginCount == 1) {
|
||||||
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
|
_starTourRender();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
print('Error fetching user details: $e');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Future<String?> getUserId() async {
|
|
||||||
final prefs = await SharedPreferences.getInstance();
|
|
||||||
return prefs.getString('userId'); // Retrieve the userId
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> _fetchUserData() async {
|
|
||||||
try {
|
|
||||||
final userId = await getUserId();
|
|
||||||
print('EDIT PROFILE isPageLoad');
|
|
||||||
final adminAuth = await _pb.admins
|
|
||||||
.authWithPassword('pb@venbainfotech.com', 'pb@venbainfotech.com');
|
|
||||||
final adminToken = adminAuth.token;
|
|
||||||
print('adminToken- $adminToken');
|
|
||||||
final userDetailsResponse = await _pb.collection('users').getOne(
|
|
||||||
userId!,
|
|
||||||
headers: {
|
|
||||||
'Authorization': 'Bearer $adminToken',
|
|
||||||
},
|
|
||||||
);
|
|
||||||
final loginCount = userDetailsResponse.data['login_count'];
|
|
||||||
print(loginCount);
|
|
||||||
if (loginCount == 1) {
|
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
||||||
_starTourRender();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
print('Error fetching user details: $e');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> fetchData(locale) async {
|
Future<void> fetchData(locale) async {
|
||||||
const baseUrl = 'https://pb.venbait.in/api/getHomePageData';
|
const baseUrl = 'https://pb.venbait.in/api/getHomePageData';
|
||||||
@ -911,7 +914,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
RoundedCornerContainer(
|
RoundedCornerContainer(
|
||||||
key: mainTopic['main_topic'] == 'ECONOMY'
|
key: mainTopic['main_topic'] =='ECONOMY'
|
||||||
? cardTopicKey
|
? cardTopicKey
|
||||||
: null,
|
: null,
|
||||||
text: mainTopic['main_topic'],
|
text: mainTopic['main_topic'],
|
||||||
@ -925,7 +928,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: myheight / 4.8, // Set dynamic height
|
height: myheight / 4.8, // Set dynamic height
|
||||||
child: Container(
|
child: Container(
|
||||||
key: mainTopic['main_topic'] == 'ECONOMY'
|
key:mainTopic['main_topic'] == 'ECONOMY'
|
||||||
? cardsKey
|
? cardsKey
|
||||||
: null,
|
: null,
|
||||||
// color: Colors.grey[200], // Set a background color for the scrollable container
|
// color: Colors.grey[200], // Set a background color for the scrollable container
|
||||||
@ -1147,6 +1150,7 @@ class InfoCard extends StatelessWidget {
|
|||||||
final encodedTitle = Uri.encodeComponent(title);
|
final encodedTitle = Uri.encodeComponent(title);
|
||||||
final encodedKey = Uri.encodeQueryComponent('home');
|
final encodedKey = Uri.encodeQueryComponent('home');
|
||||||
|
|
||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
context.go(
|
context.go(
|
||||||
@ -1181,6 +1185,7 @@ class InfoCard extends StatelessWidget {
|
|||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
// color: Colors.black,
|
// color: Colors.black,
|
||||||
|
fontFamily: 'Roboto',
|
||||||
color: Color(0xFF000000),
|
color: Color(0xFF000000),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -1200,6 +1205,7 @@ class InfoCard extends StatelessWidget {
|
|||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
|
fontFamily: 'Roboto',
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
color: Color(0xFF8E8E8E),
|
color: Color(0xFF8E8E8E),
|
||||||
),
|
),
|
||||||
@ -1218,8 +1224,9 @@ class InfoCard extends StatelessWidget {
|
|||||||
Text(
|
Text(
|
||||||
value,
|
value,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 26,
|
fontSize: 18,
|
||||||
fontWeight: FontWeight.w900,
|
fontWeight: FontWeight.w900,
|
||||||
|
fontFamily: 'Roboto',
|
||||||
color: textcolor ?? Colors.black,
|
color: textcolor ?? Colors.black,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
194
lib/presentation/routes/drawer_routes/Drawer Items/bookmark.dart
Normal file
194
lib/presentation/routes/drawer_routes/Drawer Items/bookmark.dart
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
|
import 'package:uae_stat/presentation/routes/drawer_routes/custom_drawer_routes.dart';
|
||||||
|
|
||||||
|
|
||||||
|
class BookMark extends ConsumerStatefulWidget {
|
||||||
|
const BookMark({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
ConsumerState<BookMark> createState() => _BookMarkState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _BookMarkState extends ConsumerState<BookMark> {
|
||||||
|
// Example dynamic data
|
||||||
|
final List<Map<String, dynamic>> dataList = [
|
||||||
|
{
|
||||||
|
'title': 'GDP(Constant)',
|
||||||
|
'subtitle': '(2022)(AED)',
|
||||||
|
'value': '1.62T',
|
||||||
|
'valueColor': Color(0xFF80A8CD),
|
||||||
|
'isBookmark': true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'title': 'Trade Value',
|
||||||
|
'subtitle': '(Jan-Jan 2024)-AED',
|
||||||
|
'value': '215.4B',
|
||||||
|
'valueColor': Color(0xFF80A8CD),
|
||||||
|
'isBookmark': true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'title': 'Electricity Production',
|
||||||
|
'subtitle': '(2022) (GWh)',
|
||||||
|
'value': '155,438',
|
||||||
|
'valueColor': Color(0xFFAA8E83),
|
||||||
|
'isBookmark': true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'title': 'Crude Oil Production',
|
||||||
|
'subtitle': '(2022) (1000 b/d)',
|
||||||
|
'value': '3,064',
|
||||||
|
'valueColor': Color(0xFF80A8CD),
|
||||||
|
'isBookmark': true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'title': 'Quantitiy of Export Oil',
|
||||||
|
'subtitle': '(2022) (1000 b/d)',
|
||||||
|
'value': '2717',
|
||||||
|
'valueColor': Color(0xFF7DAFBC),
|
||||||
|
'isBookmark': true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'title': 'Desalinated Water Production',
|
||||||
|
'subtitle': '(2022) (MCM)',
|
||||||
|
'value': '1823.8',
|
||||||
|
'valueColor': Color(0xFF7DAFBC),
|
||||||
|
'isBookmark': true
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
final filteredList = dataList.where((item) => item['isBookmark'] == true)
|
||||||
|
.toList();
|
||||||
|
return BaseScaffold(
|
||||||
|
title: Text('Bookmark'),
|
||||||
|
body: Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: GridView.builder(
|
||||||
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||||
|
crossAxisCount: 2, // Two columns
|
||||||
|
crossAxisSpacing: 10.0,
|
||||||
|
mainAxisSpacing: 10.0,
|
||||||
|
mainAxisExtent: 100,
|
||||||
|
),
|
||||||
|
itemCount: filteredList.length,
|
||||||
|
itemBuilder: (context, index) {
|
||||||
|
return _buildBox(filteredList[index], context);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Widget for creating a box
|
||||||
|
Widget _buildBox(Map<String, dynamic> data, BuildContext context) {
|
||||||
|
return GestureDetector(
|
||||||
|
onTap: () {
|
||||||
|
debugPrint("Box clicked: ${data['title']}");
|
||||||
|
},
|
||||||
|
child: Container(
|
||||||
|
width: MediaQuery
|
||||||
|
.of(context)
|
||||||
|
.size
|
||||||
|
.width * 0.4,
|
||||||
|
height: 100,
|
||||||
|
padding: EdgeInsets.all(8.0),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.white,
|
||||||
|
borderRadius: BorderRadius.circular(10),
|
||||||
|
border: Border.all(color: data['valueColor']),
|
||||||
|
),
|
||||||
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Align(
|
||||||
|
alignment: Alignment.center,
|
||||||
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: Align(
|
||||||
|
alignment: Alignment.center,
|
||||||
|
child: Text(
|
||||||
|
data['title'] ?? '',
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
// Truncate long text
|
||||||
|
maxLines: 1, // Limit to 1 line
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
GestureDetector(
|
||||||
|
onTap: () {
|
||||||
|
debugPrint("Icon clicked in: ${data['title']}");
|
||||||
|
setState(() {
|
||||||
|
// Change isOpen to false when icon is clicked
|
||||||
|
int index = dataList.indexWhere(
|
||||||
|
(item) => item['title'] == data['title'],);
|
||||||
|
if (index != -1) {
|
||||||
|
dataList[index]['isBookmark'] = false;
|
||||||
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
|
SnackBar(
|
||||||
|
content: Text(
|
||||||
|
'Removed From Bookmark',
|
||||||
|
style: TextStyle(color: Color(0xFF2F692C),
|
||||||
|
fontWeight: FontWeight.w600),
|
||||||
|
),
|
||||||
|
backgroundColor: Color(0xFFD6E9C6),
|
||||||
|
duration: Duration(seconds: 2),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
|
SnackBar(
|
||||||
|
content: Text(
|
||||||
|
'Failed to Remove',
|
||||||
|
style: TextStyle(color: Color(0xFFEB5F24),
|
||||||
|
fontWeight: FontWeight.w600),
|
||||||
|
),
|
||||||
|
backgroundColor: Color(0xFF544C4C),
|
||||||
|
duration: Duration(seconds: 2),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
child: Icon(
|
||||||
|
Icons.bookmarks_rounded,
|
||||||
|
color: Colors.black,
|
||||||
|
size: 20,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
data['subtitle'] ?? '',
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.w500, color: Colors.grey),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
maxLines: 1,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
data['value'] ?? '',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 28,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
color: data['valueColor'],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,7 +1,12 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
|
import 'package:go_router/go_router.dart';
|
||||||
|
|
||||||
import 'package:uae_stat/presentation/routes/drawer_routes/custom_drawer_routes.dart';
|
import 'package:uae_stat/presentation/routes/drawer_routes/custom_drawer_routes.dart';
|
||||||
|
|
||||||
|
import '../../../../components/indicators/locale_provider.dart';
|
||||||
|
import '../../../../components/my_toggle.dart';
|
||||||
|
|
||||||
class FAQPage extends StatefulWidget {
|
class FAQPage extends StatefulWidget {
|
||||||
const FAQPage({super.key});
|
const FAQPage({super.key});
|
||||||
|
|
||||||
@ -12,63 +17,90 @@ class FAQPage extends StatefulWidget {
|
|||||||
class _FAQPageState extends State<FAQPage> {
|
class _FAQPageState extends State<FAQPage> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return BaseScaffold(
|
return Scaffold(
|
||||||
title: Text('FAQs',
|
appBar: AppBar(
|
||||||
style: TextStyle(
|
elevation: 3,
|
||||||
color:Color(0xFF7296BE),
|
shadowColor: Colors.black,
|
||||||
fontWeight: FontWeight.w500,
|
title: Text('Key Features',),
|
||||||
),),
|
leading: IconButton(
|
||||||
showBackButton: true,
|
onPressed: (){
|
||||||
body: SafeArea(child:Column(
|
context.go('/user-guide');
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
},
|
||||||
children: [
|
color: Colors.black,
|
||||||
Container(
|
icon: const Icon(Icons.arrow_back_ios_new),),
|
||||||
padding: const EdgeInsets.all(16.0),
|
actions: [
|
||||||
width: MediaQuery.of(context).size.width,
|
Consumer(
|
||||||
child: Text.rich(
|
builder: (context, ref, _) {
|
||||||
TextSpan(
|
final locale = ref.watch(localeProvider); // Current locale
|
||||||
text: 'Here are some common questions about the ',
|
return MyToggle(
|
||||||
style: TextStyle(
|
isOn: locale?.languageCode == 'en',
|
||||||
fontSize: 19,
|
knobTextWhenOn: 'ع',
|
||||||
fontWeight: FontWeight.w600,
|
knobTextWhenOff: 'EN',
|
||||||
color: Colors.grey,
|
pathColorWhenOn: Colors.grey.shade300,
|
||||||
|
pathColorWhenOff: Colors.grey.shade300,
|
||||||
|
onTap: () {
|
||||||
|
ref.read(localeProvider.notifier).toggleLocale();
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
|
||||||
|
),
|
||||||
|
body: SafeArea(
|
||||||
|
child: Scrollbar(
|
||||||
|
thumbVisibility: true,
|
||||||
|
thickness: 6,
|
||||||
|
radius: Radius.circular(10),
|
||||||
|
interactive: true,
|
||||||
|
child:SingleChildScrollView(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container
|
||||||
|
(
|
||||||
|
color: Colors.white,
|
||||||
|
padding: const EdgeInsets.all(16.0),
|
||||||
|
width: MediaQuery.of(context).size.width,
|
||||||
|
child: Text.rich(
|
||||||
|
TextSpan(
|
||||||
|
text: 'Here are some common questions about the ',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 19,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: Colors.grey,
|
||||||
|
),
|
||||||
|
children: [
|
||||||
|
TextSpan(
|
||||||
|
text:' Federal Competitiveness and Statistics Centre (FCSC),',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 19,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: Colors.black87,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
TextSpan(
|
||||||
|
text: 'mobile application:',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 19,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: Colors.grey,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
children: [
|
Container(
|
||||||
TextSpan(
|
padding: const EdgeInsets.all(0.0),
|
||||||
text:' Federal Competitiveness and Statistics Centre (FCSC),',
|
color: Colors.grey[50],
|
||||||
style: TextStyle(
|
child: QuestionAnswerScrollView(),
|
||||||
fontSize: 19,
|
),
|
||||||
fontWeight: FontWeight.w600,
|
],
|
||||||
color: Colors.black87,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
TextSpan(
|
|
||||||
text: 'mobile application:',
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 19,
|
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
color: Colors.grey,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(child: Scrollbar(
|
),
|
||||||
thumbVisibility: true,
|
|
||||||
thickness: 8,
|
|
||||||
radius: Radius.circular(10),
|
|
||||||
interactive: true,
|
|
||||||
child:SingleChildScrollView(
|
|
||||||
child:Container(
|
|
||||||
padding: const EdgeInsets.all(0.0),
|
|
||||||
color: Colors.grey[50],
|
|
||||||
child: QuestionAnswerScrollView(),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,13 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:uae_stat/presentation/routes/drawer_routes/custom_drawer_routes.dart';
|
import 'package:uae_stat/presentation/routes/drawer_routes/custom_drawer_routes.dart';
|
||||||
|
|
||||||
import 'package:uae_stat/presentation/routes/drawer_routes/Drawer%20Items/user_guide/custom_text.dart';
|
import 'package:uae_stat/presentation/routes/drawer_routes/Drawer%20Items/user_guide/custom_text.dart';
|
||||||
|
|
||||||
|
import '../../../../components/indicators/locale_provider.dart';
|
||||||
|
import '../../../../components/my_toggle.dart';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class UsingFeatures extends StatelessWidget {
|
class UsingFeatures extends StatelessWidget {
|
||||||
@ -517,44 +522,74 @@ class UsingFeatures extends StatelessWidget {
|
|||||||
|
|
||||||
];
|
];
|
||||||
return
|
return
|
||||||
BaseScaffold( title: Text('Key Features',
|
Scaffold(
|
||||||
style: TextStyle(
|
appBar: AppBar(
|
||||||
color: Color(0xFFAA8E83),
|
elevation: 3,
|
||||||
),),
|
shadowColor: Colors.black,
|
||||||
showBackButton: true,
|
title: Text('Key Features',),
|
||||||
body:SafeArea(child: Column(
|
leading: IconButton(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
onPressed: (){
|
||||||
children: [
|
context.go('/user-guide');
|
||||||
Container(
|
},
|
||||||
padding: const EdgeInsets.all(16.0),
|
color: Colors.black,
|
||||||
width: MediaQuery.of(context).size.width,
|
icon: const Icon(Icons.arrow_back_ios_new),),
|
||||||
child: Text(
|
actions: [
|
||||||
'FEATURES',
|
Consumer(
|
||||||
style: TextStyle(
|
builder: (context, ref, _) {
|
||||||
color: Colors.black,// Text color
|
final locale = ref.watch(localeProvider); // Current locale
|
||||||
fontSize: 18,
|
return MyToggle(
|
||||||
fontWeight: FontWeight.w500,
|
isOn: locale?.languageCode == 'en',
|
||||||
),
|
knobTextWhenOn: 'ع',
|
||||||
),
|
knobTextWhenOff: 'EN',
|
||||||
|
pathColorWhenOn: Colors.grey.shade300,
|
||||||
|
pathColorWhenOff: Colors.grey.shade300,
|
||||||
|
onTap: () {
|
||||||
|
ref.read(localeProvider.notifier).toggleLocale();
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
Expanded(child: Scrollbar(
|
],
|
||||||
|
|
||||||
|
),
|
||||||
|
body:SafeArea(
|
||||||
|
|
||||||
|
child: Scrollbar(
|
||||||
thumbVisibility: true,
|
thumbVisibility: true,
|
||||||
thickness: 6,
|
thickness: 6,
|
||||||
radius: Radius.circular(10),
|
radius: Radius.circular(10),
|
||||||
interactive: true,
|
interactive: true,
|
||||||
child:
|
child: SingleChildScrollView(
|
||||||
Container(
|
child: Column(
|
||||||
color: Colors.grey[50], // Set the background color here
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
// child: SingleChildScrollView(
|
children: [
|
||||||
child: CustomTextRich(
|
Container(
|
||||||
textSpans: textSpans,
|
color: Colors.white,
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
textAlign: TextAlign.start,
|
width: MediaQuery.of(context).size.width,
|
||||||
|
child: Text(
|
||||||
|
'FEATURES',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.black,// Text color
|
||||||
|
fontSize: 18,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
color: Colors.grey[50], // Set the background color here
|
||||||
|
// child: SingleChildScrollView(
|
||||||
|
child: CustomTextRich(
|
||||||
|
textSpans: textSpans,
|
||||||
|
padding: const EdgeInsets.all(16.0),
|
||||||
|
textAlign: TextAlign.start,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
),),
|
),
|
||||||
],
|
),
|
||||||
), ),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
|
import 'package:go_router/go_router.dart';
|
||||||
|
|
||||||
|
|
||||||
import 'package:uae_stat/presentation/routes/drawer_routes/Drawer%20Items/user_guide/custom_text.dart';
|
import 'package:uae_stat/presentation/routes/drawer_routes/Drawer%20Items/user_guide/custom_text.dart';
|
||||||
@ -7,6 +9,9 @@ import 'package:uae_stat/presentation/routes/drawer_routes/custom_drawer_routes.
|
|||||||
|
|
||||||
import 'package:uae_stat/infrastructure/services/img_asset_paths/banner_asset_path.dart';
|
import 'package:uae_stat/infrastructure/services/img_asset_paths/banner_asset_path.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
|
import '../../../../components/indicators/locale_provider.dart';
|
||||||
|
import '../../../../components/my_toggle.dart';
|
||||||
class GettingStarted extends StatelessWidget {
|
class GettingStarted extends StatelessWidget {
|
||||||
GettingStarted({super.key});
|
GettingStarted({super.key});
|
||||||
|
|
||||||
@ -66,55 +71,90 @@ class GettingStarted extends StatelessWidget {
|
|||||||
|
|
||||||
|
|
||||||
];
|
];
|
||||||
return BaseScaffold( title: Text('About the App',
|
return Scaffold(
|
||||||
style: TextStyle(
|
appBar: AppBar(
|
||||||
color:Color(0xFF265E84),
|
elevation: 3,
|
||||||
fontWeight: FontWeight.w500,
|
shadowColor: Colors.black,
|
||||||
|
title: Text('About the App',),
|
||||||
|
leading: IconButton(
|
||||||
|
onPressed: (){
|
||||||
|
context.go('/user-guide');
|
||||||
|
},
|
||||||
|
color: Colors.black,
|
||||||
|
icon: const Icon(Icons.arrow_back_ios_new),),
|
||||||
|
actions: [
|
||||||
|
Consumer(
|
||||||
|
builder: (context, ref, _) {
|
||||||
|
final locale = ref.watch(localeProvider); // Current locale
|
||||||
|
return MyToggle(
|
||||||
|
isOn: locale?.languageCode == 'en',
|
||||||
|
knobTextWhenOn: 'ع',
|
||||||
|
knobTextWhenOff: 'EN',
|
||||||
|
pathColorWhenOn: Colors.grey.shade300,
|
||||||
|
pathColorWhenOff: Colors.grey.shade300,
|
||||||
|
onTap: () {
|
||||||
|
ref.read(localeProvider.notifier).toggleLocale();
|
||||||
|
},
|
||||||
|
);
|
||||||
|
// IconButton(
|
||||||
|
// icon: Icon(locale?.languageCode == 'en'
|
||||||
|
// ? Icons.toggle_off_outlined
|
||||||
|
// : Icons.toggle_on_outlined,),
|
||||||
|
// onPressed: () {
|
||||||
|
// ref.read(localeProvider.notifier).toggleLocale();
|
||||||
|
// },
|
||||||
|
// );
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
// title: Text('About the App',),
|
||||||
showBackButton: true,
|
// showBackButton: true,
|
||||||
body:SafeArea(child: Column(
|
body:SafeArea(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
child: Scrollbar(
|
||||||
children: [
|
thumbVisibility: true,
|
||||||
Container(
|
thickness: 6,
|
||||||
padding: const EdgeInsets.all(16.0),
|
radius: Radius.circular(10),
|
||||||
width: MediaQuery.of(context).size.width,
|
interactive: true,
|
||||||
child: Text.rich(
|
child:SingleChildScrollView(
|
||||||
TextSpan(
|
child: Column(
|
||||||
text: 'The',
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
style: TextStyle(
|
children: [
|
||||||
fontSize: 19,
|
Container(
|
||||||
fontWeight: FontWeight.w600,
|
color: Colors.white,
|
||||||
color: Colors.grey,
|
padding: const EdgeInsets.all(16.0),
|
||||||
),
|
width: MediaQuery.of(context).size.width,
|
||||||
children: [
|
child: Text.rich(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text:' Federal Competitiveness and Statistics Centre (FCSC),',
|
text: 'The',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 19,
|
fontSize: 19,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
color: Colors.black87,
|
color: Colors.grey,
|
||||||
),
|
),
|
||||||
),
|
children: [
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text:' in your App is designed to provide registered and approved users with access to accurate and comprehensive statistics about the UAE. The app serves as a centralized platform for exploring key datasets, trends, and insights across various sectors.',
|
text:' Federal Competitiveness and Statistics Centre (FCSC),',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 19,
|
fontSize: 19,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
color: Colors.grey,
|
color: Colors.black87,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
TextSpan(
|
||||||
|
text:' in your App is designed to provide registered and approved users with access to accurate and comprehensive statistics about the UAE. The app serves as a centralized platform for exploring key datasets, trends, and insights across various sectors.',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 19,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: Colors.grey,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
|
||||||
),
|
Column(
|
||||||
),
|
|
||||||
Expanded(child: Scrollbar(
|
|
||||||
thumbVisibility: true,
|
|
||||||
thickness: 6,
|
|
||||||
radius: Radius.circular(10),
|
|
||||||
interactive: true,
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Column(
|
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
color: Colors.grey[50], // Set the background color here
|
color: Colors.grey[50], // Set the background color here
|
||||||
@ -169,11 +209,11 @@ class GettingStarted extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
|
),
|
||||||
),),
|
),
|
||||||
],
|
),
|
||||||
), ),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,15 +15,16 @@ class _UserGuideState extends State<UserGuide> {
|
|||||||
List<Widget> createRows(List<List<Map<String, dynamic>>> items) {
|
List<Widget> createRows(List<List<Map<String, dynamic>>> items) {
|
||||||
return items.map((pair) {
|
return items.map((pair) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 20), // Add space between rows
|
padding: const EdgeInsets.only(bottom: 20),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: pair.length == 1
|
||||||
|
? MainAxisAlignment.center
|
||||||
|
: MainAxisAlignment.spaceEvenly,
|
||||||
children: pair.map((item) {
|
children: pair.map((item) {
|
||||||
return userGuides(
|
return userGuides(
|
||||||
color: item['color'] as Color,
|
color: item['color'] as Color,
|
||||||
text: item['text'] as String,
|
text: item['text'] as String,
|
||||||
dynamicIcon: item['icon'],
|
dynamicIcon: item['icon'],
|
||||||
no: item['index'] as String,
|
|
||||||
routePath:item['routePath']as String,
|
routePath:item['routePath']as String,
|
||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
@ -36,17 +37,16 @@ class _UserGuideState extends State<UserGuide> {
|
|||||||
title: Text('User Guide'),
|
title: Text('User Guide'),
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Colors.grey[300], // Grey background for content
|
|
||||||
padding: const EdgeInsets.all(16.0), // Padding around content
|
padding: const EdgeInsets.all(16.0), // Padding around content
|
||||||
child: Column(
|
child: Column(
|
||||||
children: createRows([
|
children: createRows([
|
||||||
// Each pair defines a row of (Color, Text) pairs
|
// Each pair defines a row of (Color, Text) pairs
|
||||||
[
|
[
|
||||||
{'routePath':'gettingStarted','color': Color(0xFF90B0D5), 'text': 'Getting Started', 'icon': 'START', 'index': '1'},
|
{'routePath':'gettingStarted','color': Color(0xFF90B0D5), 'text': 'Getting Started', 'icon': 'START',},
|
||||||
{'routePath':'features','color': Color(0xFFAA8E83), 'text': 'Using Features', 'icon': Icons.stars_outlined, 'index': '2'},
|
{'routePath':'features','color': Color(0xFFAA8E83), 'text': 'Using Features', 'icon': Icons.stars_outlined,},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
{'routePath':'faq','color': Color(0xFF7296BE), 'text': 'FAQs', 'icon': Icons.question_answer_sharp, 'index': '3'},
|
{'routePath':'faq','color': Color(0xFF7296BE), 'text': 'FAQs', 'icon': Icons.question_answer_sharp,},
|
||||||
// {'routePath':'features','color': Color(0xFF7DAFBC), 'text': 'Advanced Settings', 'icon': Icons.settings_outlined, 'index': '6'},
|
// {'routePath':'features','color': Color(0xFF7DAFBC), 'text': 'Advanced Settings', 'icon': Icons.settings_outlined, 'index': '6'},
|
||||||
],
|
],
|
||||||
]),
|
]),
|
||||||
@ -58,21 +58,20 @@ class _UserGuideState extends State<UserGuide> {
|
|||||||
|
|
||||||
class userGuides extends StatelessWidget {
|
class userGuides extends StatelessWidget {
|
||||||
|
|
||||||
const userGuides({super.key, required this.routePath ,required this.color, required this.text,required this.dynamicIcon,required this.no});
|
const userGuides({super.key, required this.routePath ,required this.color, required this.text,required this.dynamicIcon});
|
||||||
final Color color;
|
final Color color;
|
||||||
final String text;
|
final String text;
|
||||||
final dynamic dynamicIcon;
|
final dynamic dynamicIcon;
|
||||||
final String no;
|
|
||||||
final String routePath;
|
final String routePath;
|
||||||
|
|
||||||
|
|
||||||
Widget buildDynamicWidget(dynamic icons) {
|
Widget buildDynamicWidget(dynamic icons, Color iconColor) {
|
||||||
if (dynamicIcon is IconData) {
|
if (dynamicIcon is IconData) {
|
||||||
|
|
||||||
return Icon(
|
return Icon(
|
||||||
icons,
|
icons,
|
||||||
size: 38,
|
size: 38,
|
||||||
color: Colors.white,
|
color: iconColor,
|
||||||
);
|
);
|
||||||
} else if (dynamicIcon is String) {
|
} else if (dynamicIcon is String) {
|
||||||
// Create a Text widget if variable is a String
|
// Create a Text widget if variable is a String
|
||||||
@ -81,7 +80,7 @@ class userGuides extends StatelessWidget {
|
|||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
color: Colors.white,
|
color: iconColor,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@ -96,67 +95,52 @@ class userGuides extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final double screenWidth= MediaQuery.of(context).size.width;
|
||||||
|
final double screenHeight= MediaQuery.of(context).size.height;
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: (){
|
onTap: (){
|
||||||
context.push('/user-guide/$routePath');
|
context.push('/user-guide/$routePath');
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 4),
|
padding: EdgeInsets.symmetric(horizontal: 4),
|
||||||
height: 115,
|
height: 110,
|
||||||
width: 148,
|
width: screenWidth * 0.40,
|
||||||
margin: EdgeInsets.all(1),
|
margin: EdgeInsets.all(1),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: color,
|
color: Colors.white,
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
),
|
border: Border.all(color: color,
|
||||||
alignment: Alignment.center,
|
width: 2.0)
|
||||||
child: Stack(
|
),
|
||||||
children: [Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
// Icon(
|
// Icon(
|
||||||
// size:38,
|
// size:38,
|
||||||
// icons, // Home icon
|
// icons, // Home icon
|
||||||
// color: Colors.white,
|
// color: Colors.white,
|
||||||
// ),
|
// ),
|
||||||
buildDynamicWidget(dynamicIcon),
|
buildDynamicWidget(dynamicIcon, color),
|
||||||
|
|
||||||
SizedBox(width: 10,height: 15,), // Space between icon and text
|
SizedBox(width: 10,height: 10,), // Space between icon and text
|
||||||
Container(
|
Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
padding: EdgeInsets.symmetric(horizontal: 4, vertical: 4), // Padding inside the text background
|
padding: EdgeInsets.symmetric(horizontal: 4, vertical: 5), // Padding inside the text background
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white, // Background color for text
|
color: color, // Background color for text
|
||||||
borderRadius: BorderRadius.circular(5), // Rounded corners for text background
|
borderRadius: BorderRadius.circular(5),
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: color, // Text color
|
color: Colors.white, // Text color
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
],
|
||||||
top: 6, // Distance from the top of the container
|
),
|
||||||
left: 6, // Distance from the left of the container
|
|
||||||
child: Container(
|
|
||||||
padding: EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
|
||||||
color: Colors.transparent, // Background color for the number
|
|
||||||
child: Text(
|
|
||||||
no,
|
|
||||||
style: TextStyle(
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 18,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),],
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -124,7 +124,7 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
text: AppLocalizations.of(context)!.tour_navBar,
|
text: AppLocalizations.of(context)!.tour_navBar,
|
||||||
alignment: ContentAlign.top,
|
alignment: ContentAlign.top,
|
||||||
space: 0,
|
space: 0,
|
||||||
gap: 100,
|
gap: 105,
|
||||||
),
|
),
|
||||||
TargetContent(
|
TargetContent(
|
||||||
align: ContentAlign.top,
|
align: ContentAlign.top,
|
||||||
@ -138,37 +138,43 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
bottom: 25,
|
bottom: 25,
|
||||||
left: 16,
|
left: 16,
|
||||||
right: 16,
|
right: 16,
|
||||||
child: Row(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
||||||
children: [
|
children: [
|
||||||
ElevatedButton(
|
Align(
|
||||||
onPressed: () => handleSkip(),
|
alignment: Alignment.bottomRight,
|
||||||
style: ElevatedButton.styleFrom(
|
child: Padding(
|
||||||
shape: RoundedRectangleBorder(
|
padding: const EdgeInsets.only(right:10.0),
|
||||||
borderRadius: BorderRadius.circular(12),
|
child: Text(
|
||||||
),
|
|
||||||
side: const BorderSide(color: Colors.white),
|
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
elevation: 0,
|
|
||||||
),
|
|
||||||
child: const Text(
|
|
||||||
'Skip',
|
|
||||||
style: TextStyle(
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 14,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Column(
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
'5/7',
|
'5/7',
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 3),
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 5),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () => handleSkip(),
|
||||||
|
style: ElevatedButton.styleFrom(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
),
|
||||||
|
side: const BorderSide(color: Colors.white),
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
elevation: 0,
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
|
'Skip',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
@ -187,9 +193,9 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
.state = true;
|
.state = true;
|
||||||
ref
|
ref
|
||||||
.read(previousChartsTourProvider
|
.read(previousChartsTourProvider
|
||||||
.notifier)
|
.notifier)
|
||||||
.state = false;
|
.state = false;
|
||||||
context.push('/marriages');
|
context.go('/chartScreen/hotels?bgColor=0xFF90B0D5&mainTopic=ECONOMY&title=Hotel+Establishments');
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -220,22 +226,6 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TargetContent(
|
|
||||||
padding: EdgeInsets.only(left: screenWidth * 0.4, bottom: 0),
|
|
||||||
align: ContentAlign.top,
|
|
||||||
child: Container(
|
|
||||||
width: 200,
|
|
||||||
height: 100,
|
|
||||||
child: Stack(
|
|
||||||
children: [
|
|
||||||
Image.asset(
|
|
||||||
'assets/app_tour/leftUp.png',
|
|
||||||
fit: BoxFit.contain,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
TargetFocus(
|
TargetFocus(
|
||||||
@ -255,45 +245,50 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
align: ContentAlign.bottom,
|
align: ContentAlign.bottom,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: MediaQuery.of(context).size.height *
|
height: MediaQuery.of(context).size.height * 0.80,
|
||||||
0.80, // Set an appropriate height for the Stack
|
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Positioned(
|
Positioned(
|
||||||
bottom: 25,
|
bottom: 25,
|
||||||
left: 16,
|
left: 16,
|
||||||
right: 16,
|
right: 16,
|
||||||
child: Row(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
||||||
children: [
|
children: [
|
||||||
ElevatedButton(
|
Align(
|
||||||
onPressed: () => handleSkip(),
|
alignment: Alignment.bottomRight,
|
||||||
style: ElevatedButton.styleFrom(
|
child:Padding(
|
||||||
shape: RoundedRectangleBorder(
|
padding: const EdgeInsets.only(right:10.0),
|
||||||
borderRadius: BorderRadius.circular(12),
|
child: Text(
|
||||||
),
|
|
||||||
side: const BorderSide(color: Colors.white),
|
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
elevation: 0,
|
|
||||||
),
|
|
||||||
child: const Text(
|
|
||||||
'Skip',
|
|
||||||
style: TextStyle(
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 14,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Column(
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
'6/7',
|
'6/7',
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 3),
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 5),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () => handleSkip(),
|
||||||
|
style: ElevatedButton.styleFrom(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
),
|
||||||
|
side: const BorderSide(color: Colors.white),
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
elevation: 0,
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
|
'Skip',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
@ -339,7 +334,7 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
),
|
),
|
||||||
TargetContent(
|
TargetContent(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
right: screenWidth * 0.7, top: toggleHeight - 5),
|
right: screenWidth * 0.7, top: 30),
|
||||||
align: ContentAlign.right,
|
align: ContentAlign.right,
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 200,
|
width: 200,
|
||||||
@ -392,37 +387,43 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
bottom: 25,
|
bottom: 25,
|
||||||
left: 16,
|
left: 16,
|
||||||
right: 16,
|
right: 16,
|
||||||
child: Row(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
||||||
children: [
|
children: [
|
||||||
ElevatedButton(
|
Align(
|
||||||
onPressed: () => handleSkip(),
|
alignment: Alignment.bottomRight,
|
||||||
style: ElevatedButton.styleFrom(
|
child:Padding(
|
||||||
shape: RoundedRectangleBorder(
|
padding: const EdgeInsets.only(right:10.0),
|
||||||
borderRadius: BorderRadius.circular(12),
|
child: Text(
|
||||||
),
|
|
||||||
side: const BorderSide(color: Colors.white),
|
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
elevation: 0,
|
|
||||||
),
|
|
||||||
child: const Text(
|
|
||||||
'Skip',
|
|
||||||
style: TextStyle(
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 14,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Column(
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
'7/7',
|
'7/7',
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 3),
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 5),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () => handleSkip(),
|
||||||
|
style: ElevatedButton.styleFrom(
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
),
|
||||||
|
side: const BorderSide(color: Colors.white),
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
elevation: 0,
|
||||||
|
),
|
||||||
|
child: const Text(
|
||||||
|
'Skip',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
@ -448,10 +449,10 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
.state = true;
|
.state = true;
|
||||||
ref
|
ref
|
||||||
.read(
|
.read(
|
||||||
previousChartsTourProvider.notifier)
|
previousChartsTourProvider.notifier)
|
||||||
.state = true;
|
.state = true;
|
||||||
ref.read(homeTourProvider.notifier).state =
|
ref.read(homeTourProvider.notifier).state =
|
||||||
true;
|
true;
|
||||||
ref
|
ref
|
||||||
.read(previousHomeTourProvider.notifier)
|
.read(previousHomeTourProvider.notifier)
|
||||||
.state = true;
|
.state = true;
|
||||||
@ -460,7 +461,7 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
.state = true;
|
.state = true;
|
||||||
ref
|
ref
|
||||||
.read(previousScaffoldTourProvider
|
.read(previousScaffoldTourProvider
|
||||||
.notifier)
|
.notifier)
|
||||||
.state = true;
|
.state = true;
|
||||||
tutorialCoachMark.finish();
|
tutorialCoachMark.finish();
|
||||||
},
|
},
|
||||||
@ -493,7 +494,7 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
),
|
),
|
||||||
TargetContent(
|
TargetContent(
|
||||||
padding:
|
padding:
|
||||||
EdgeInsets.only(left: screenWidth * 0.7, top: toggleHeight),
|
EdgeInsets.only(left: screenWidth * 0.7, top: toggleHeight),
|
||||||
align: ContentAlign.left,
|
align: ContentAlign.left,
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 200,
|
width: 200,
|
||||||
@ -746,6 +747,11 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
|
|||||||
),
|
),
|
||||||
onTap: () => context.go('/manageuser'),
|
onTap: () => context.go('/manageuser'),
|
||||||
),
|
),
|
||||||
|
ListTile(
|
||||||
|
leading: Icon(Icons.collections_bookmark_rounded),
|
||||||
|
title: const Text('Bookmark'),
|
||||||
|
onTap: () => context.go('/bookmark'),
|
||||||
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: Icon(Icons.book),
|
leading: Icon(Icons.book),
|
||||||
// title: const Text('User Guide'),
|
// title: const Text('User Guide'),
|
||||||
|
|||||||
52
pubspec.lock
52
pubspec.lock
@ -5,23 +5,23 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: _fe_analyzer_shared
|
name: _fe_analyzer_shared
|
||||||
sha256: "16e298750b6d0af7ce8a3ba7c18c69c3785d11b15ec83f6dcd0ad2a0009b3cab"
|
sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "76.0.0"
|
version: "72.0.0"
|
||||||
_macros:
|
_macros:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description: dart
|
description: dart
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.3.3"
|
version: "0.3.2"
|
||||||
analyzer:
|
analyzer:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: analyzer
|
name: analyzer
|
||||||
sha256: "1f14db053a8c23e260789e9b0980fa27f2680dd640932cae5e1137cce0e46e1e"
|
sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "6.11.0"
|
version: "6.7.0"
|
||||||
analyzer_plugin:
|
analyzer_plugin:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -210,10 +210,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: collection
|
name: collection
|
||||||
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
|
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.19.0"
|
version: "1.18.0"
|
||||||
connectivity_plus:
|
connectivity_plus:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -306,10 +306,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: custom_lint_visitor
|
name: custom_lint_visitor
|
||||||
sha256: bfe9b7a09c4775a587b58d10ebb871d4fe618237639b1e84d5ec62d7dfef25f9
|
sha256: "8aeb3b6ae2bb765e7716b93d1d10e8356d04e0ff6d7592de6ee04e0dd7d6587d"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.0+6.11.0"
|
version: "1.0.0+6.7.0"
|
||||||
dart_style:
|
dart_style:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -433,10 +433,10 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: fl_chart
|
name: fl_chart
|
||||||
sha256: "5276944c6ffc975ae796569a826c38a62d2abcf264e26b88fa6f482e107f4237"
|
sha256: "74959b99b92b9eebeed1a4049426fd67c4abc3c5a0f4d12e2877097d6a11ae08"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.70.2"
|
version: "0.69.2"
|
||||||
flutter:
|
flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description: flutter
|
description: flutter
|
||||||
@ -837,18 +837,18 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: leak_tracker
|
name: leak_tracker
|
||||||
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
|
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "10.0.7"
|
version: "10.0.5"
|
||||||
leak_tracker_flutter_testing:
|
leak_tracker_flutter_testing:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: leak_tracker_flutter_testing
|
name: leak_tracker_flutter_testing
|
||||||
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
|
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.0.8"
|
version: "3.0.5"
|
||||||
leak_tracker_testing:
|
leak_tracker_testing:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -877,10 +877,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: macros
|
name: macros
|
||||||
sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656"
|
sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.1.3-main.0"
|
version: "0.1.2-main.4"
|
||||||
mailer:
|
mailer:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -1268,7 +1268,7 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
version: "0.0.99"
|
||||||
smart_api_client:
|
smart_api_client:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -1352,10 +1352,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: stack_trace
|
name: stack_trace
|
||||||
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
|
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.12.0"
|
version: "1.11.1"
|
||||||
state_notifier:
|
state_notifier:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -1384,10 +1384,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: string_scanner
|
name: string_scanner
|
||||||
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
|
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.0"
|
version: "1.2.0"
|
||||||
syncfusion_flutter_charts:
|
syncfusion_flutter_charts:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -1424,10 +1424,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: test_api
|
name: test_api
|
||||||
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
|
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.7.3"
|
version: "0.7.2"
|
||||||
the_validator:
|
the_validator:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -1592,10 +1592,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: vm_service
|
name: vm_service
|
||||||
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
|
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "14.3.0"
|
version: "14.2.5"
|
||||||
watcher:
|
watcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -22,7 +22,7 @@ dependencies:
|
|||||||
riverpod_annotation: ^2.3.3
|
riverpod_annotation: ^2.3.3
|
||||||
cupertino_icons: ^1.0.6
|
cupertino_icons: ^1.0.6
|
||||||
|
|
||||||
fl_chart: ^0.70.2
|
fl_chart: ^0.69.2
|
||||||
tutorial_coach_mark: ^1.2.12
|
tutorial_coach_mark: ^1.2.12
|
||||||
marquee: ^2.2.3
|
marquee: ^2.2.3
|
||||||
url_launcher: ^6.3.1
|
url_launcher: ^6.3.1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user