chatbot added success

This commit is contained in:
Surendiran 2025-08-12 09:35:37 +05:30
parent 401ffbc7b1
commit f063c3ac08
16 changed files with 575 additions and 125 deletions

View File

@ -2,27 +2,27 @@ C/C++ Structured Logc
a a
_/Users/venbateam/Documents/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txtC _/Users/venbateam/Documents/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txtC
A A
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  ×çÀ£…3¤ òÑÞ€á2 ?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  ÝøÏц3¤ òÑÞ€á2
ˆ ˆ
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/additional_project_files.txt  ×çÀ£…3  Ú´¡ü2ˆ /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/additional_project_files.txt  ÝøÏц3  Ú´¡ü2ˆ
 
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/android_gradle_build.json  ×çÀ£…3š Ý´¡ü2<C3BC> /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/android_gradle_build.json  ÝøÏц3š Ý´¡ü2<C3BC>
Š Š
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/android_gradle_build_mini.json  ×çÀ£…3 à´¡ü2x /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/android_gradle_build_mini.json  ÝøÏц3 à´¡ü2x
v v
t/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/build.ninja  ×çÀ£…3ÖÍ Å´¡ü2| t/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/build.ninja  ÝøÏц3ÖÍ Å´¡ü2|
z z
x/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/build.ninja.txt  ×çÀ£…3<07> x/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/build.ninja.txt  ÝøÏц3<07>
 
}/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/build_file_index.txt  ×çÀ£…3 _ â´¡ü2ƒ }/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/build_file_index.txt  ÝøÏц3 _ â´¡ü2ƒ
 
~/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/compile_commands.json  ×çÀ£…3 ˆ ~/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/compile_commands.json  ÞøÏц3 ˆ
 
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/compile_commands.json.bin  ×çÀ£…3 /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/compile_commands.json.bin  ÞøÏц3
Ž Ž
 
ˆ/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/metadata_generation_command.txt  ×çÀ£…3 ¦ â´¡ü2 ˆ/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/metadata_generation_command.txt  ÞøÏц3 ¦ â´¡ü2
} }
{/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/prefab_config.json  ×çÀ£…3  ( â´¡ü2† {/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/prefab_config.json  ÞøÏц3  ( â´¡ü2†
ƒ ƒ
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/symbol_folder_index.txt  ×çÀ£…3  w â´¡ü2 /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/arm64-v8a/symbol_folder_index.txt  ÞøÏц3  w â´¡ü2

View File

@ -2,27 +2,27 @@ C/C++ Structured Logc
a a
_/Users/venbateam/Documents/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txtC _/Users/venbateam/Documents/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txtC
A A
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  åçÀ£…3¤ òÑÞ€á2<C3A1> ?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  ñøÏц3¤ òÑÞ€á2<C3A1>
Š Š
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/additional_project_files.txt  åçÀ£…3  ÄÇ´¡ü2Š /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/additional_project_files.txt  ñøÏц3  ÄÇ´¡ü2Š
 
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/android_gradle_build.json  åçÀ£…3ž ÅÇ´¡ü2<C3BC> /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/android_gradle_build.json  ñøÏц3ž ÅÇ´¡ü2<C3BC>
Œ Œ
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/android_gradle_build_mini.json  åçÀ£…3Ÿ ÅÇ´¡ü2z /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/android_gradle_build_mini.json  ñøÏц3Ÿ ÅÇ´¡ü2z
x x
v/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/build.ninja  åçÀ£…3âÍ µÇ´¡ü2~ v/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/build.ninja  ñøÏц3âÍ µÇ´¡ü2~
| |
z/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/build.ninja.txt  åçÀ£…3 z/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/build.ninja.txt  ñøÏц3
<EFBFBD> <EFBFBD>
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/build_file_index.txt  åçÀ£…3 _ ÅÇ´¡ü2† /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/build_file_index.txt  ñøÏц3 _ ÅÇ´¡ü2†
ƒ ƒ
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/compile_commands.json  åçÀ£…3 Š /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/compile_commands.json  ñøÏц3 Š
 
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/compile_commands.json.bin  åçÀ£…3 /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/compile_commands.json.bin  ñøÏц3
<EFBFBD> <EFBFBD>
<EFBFBD> <EFBFBD>
Š/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/metadata_generation_command.txt  åçÀ£…3 ° ÅÇ´¡ü2<C3BC> Š/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/metadata_generation_command.txt  ñøÏц3 ° ÅÇ´¡ü2<C3BC>
 
}/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/prefab_config.json  åçÀ£…3  ( ÅÇ´¡ü2ˆ }/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/prefab_config.json  ñøÏц3  ( ÅÇ´¡ü2ˆ
 
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/symbol_folder_index.txt  åçÀ£…3  y ÅÇ´¡ü2 /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/armeabi-v7a/symbol_folder_index.txt  ñøÏц3  y ÅÇ´¡ü2

View File

@ -2,27 +2,27 @@ C/C++ Structured Logc
a a
_/Users/venbateam/Documents/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txtC _/Users/venbateam/Documents/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txtC
A A
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  ìçÀ£…3¤ òÑÞ€á2„ ?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  øøÏц3¤ òÑÞ€á2„
<EFBFBD> <EFBFBD>
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/additional_project_files.txt  ìçÀ£…3  ÃË´¡ü2€ /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/additional_project_files.txt  øøÏц3  ÃË´¡ü2€
~ ~
|/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/android_gradle_build.json  ìçÀ£…3Ž ÄË´¡ü2‡ |/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/android_gradle_build.json  øøÏц3Ž ÄË´¡ü2‡
 
<EFBFBD>/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/android_gradle_build_mini.json  ìçÀ£…3<18> ÅË´¡ü2r <EFBFBD>/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/android_gradle_build_mini.json  øøÏц3<18> ÅË´¡ü2r
p p
n/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/build.ninja  ìçÀ£…3²Í ·Ë´¡ü2v n/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/build.ninja  øøÏц3²Í ·Ë´¡ü2v
t t
r/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/build.ninja.txt  ìçÀ£…3{ r/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/build.ninja.txt  øøÏц3{
y y
w/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/build_file_index.txt  ìçÀ£…3 _ ÅË´¡ü2| w/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/build_file_index.txt  øøÏц3 _ ÅË´¡ü2|
z z
x/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/compile_commands.json  ìçÀ£…3 x/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/compile_commands.json  øøÏц3
~ ~
|/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/compile_commands.json.bin  ìçÀ£…3 |/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/compile_commands.json.bin  øøÏц3
ˆ ˆ
 
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/metadata_generation_command.txt  ìçÀ£…3 ˆ ÅË´¡ü2y /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/metadata_generation_command.txt  øøÏц3 ˆ ÅË´¡ü2y
w w
u/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/prefab_config.json  ìçÀ£…3  ( ÅË´¡ü2~ u/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/prefab_config.json  øøÏц3  ( ÅË´¡ü2~
| |
z/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/symbol_folder_index.txt  ìçÀ£…3  q ÅË´¡ü2 z/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86/symbol_folder_index.txt  øøÏц3  q ÅË´¡ü2

View File

@ -2,27 +2,27 @@ C/C++ Structured Logc
a a
_/Users/venbateam/Documents/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txtC _/Users/venbateam/Documents/flutter/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txtC
A A
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  òçÀ£…3¤ òÑÞ€á2ˆ ?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  þøÏц3¤ òÑÞ€á2ˆ
 
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/additional_project_files.txt  òçÀ£…3  ƒÏ´¡ü2„ /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/additional_project_files.txt  þøÏц3  ƒÏ´¡ü2„
<EFBFBD> <EFBFBD>
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/android_gradle_build.json  òçÀ£…3 „Ï´¡ü2Š /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/android_gradle_build.json  þøÏц3 „Ï´¡ü2Š
 
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/android_gradle_build_mini.json  òçÀ£…3 „Ï´¡ü2u /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/android_gradle_build_mini.json  þøÏц3 „Ï´¡ü2u
s s
q/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/build.ninja  òçÀ£…3ÄÍ ÷δ¡ü2y q/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/build.ninja  þøÏц3ÄÍ ÷δ¡ü2y
w w
u/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/build.ninja.txt  òçÀ£…3~ u/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/build.ninja.txt  þøÏц3~
| |
z/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/build_file_index.txt  òçÀ£…3 _ …Ï´¡ü2 z/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/build_file_index.txt  þøÏц3 _ …Ï´¡ü2
} }
{/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/compile_commands.json  òçÀ£…3 {/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/compile_commands.json  þøÏц3
<EFBFBD> <EFBFBD>
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/compile_commands.json.bin  òçÀ£…3 /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/compile_commands.json.bin  þøÏц3
 
ˆ ˆ
/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/metadata_generation_command.txt  òçÀ£…3 — …Ï´¡ü2| /Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/metadata_generation_command.txt  þøÏц3 — …Ï´¡ü2|
z z
x/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/prefab_config.json  òçÀ£…3  ( …Ï´¡ü2<C3BC> x/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/prefab_config.json  þøÏц3  ( …Ï´¡ü2<C3BC>
 
}/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/symbol_folder_index.txt  òçÀ£…3  t …Ï´¡ü2 }/Users/venbateam/Documents/nhance/post_enrollment_app/android/app/.cxx/RelWithDebInfo/h5v1s1u6/x86_64/symbol_folder_index.txt  þøÏц3  t …Ï´¡ü2

View File

@ -31,6 +31,7 @@ import 'package:nhance_app_pwa/pages/verify.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import 'models/environment.dart'; import 'models/environment.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
// import 'dart:html' as html;
void clearLocalStorageOnAppStart() async { void clearLocalStorageOnAppStart() async {
if (kIsWeb) { if (kIsWeb) {
@ -48,6 +49,9 @@ Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {
Future<void> main() async { Future<void> main() async {
// clearLocalStorageOnAppStart(); // clearLocalStorageOnAppStart();
// html.window.onBeforeUnload.listen((event) {
// html.window.localStorage.clear(); // Clears local storage
// });
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
// final SharedPreferences prefs = await SharedPreferences.getInstance(); // final SharedPreferences prefs = await SharedPreferences.getInstance();
// prefs.clear(); // prefs.clear();

View File

@ -156,6 +156,7 @@ class _addOnsDetailsState extends State<addOnsDetails> {
[]; // Declare this to store all disclaimers []; // Declare this to store all disclaimers
late List<bool> checkboxValues; late List<bool> checkboxValues;
bool isTokenAvailable = false; bool isTokenAvailable = false;
bool isEnrollCompletedStatus = false;
@override @override
void initState() { void initState() {
@ -1390,35 +1391,42 @@ class _addOnsDetailsState extends State<addOnsDetails> {
} }
void _showSuccessDialog() { void _showSuccessDialog() {
showDialog( setState(() {
context: context, isEnrollCompletedStatus = true;
builder: (BuildContext context) { });
return AlertDialog( // showDialog(
backgroundColor: Colors.white, // context: context,
title: Text( // builder: (BuildContext context) {
'Success', // return AlertDialog(
style: GoogleFonts.poppins( // backgroundColor: Colors.white,
color: Colors.green, // title: Text(
), // 'Success',
), // style: GoogleFonts.poppins(
content: Text('Enrollment Completed'), // color: Colors.green,
actions: <Widget>[ // ),
TextButton( // ),
child: Text( // content: Text('Enrollment Completed'),
'OK', // actions: <Widget>[
style: GoogleFonts.poppins( // TextButton(
color: Color(0xFFE26728), // child: Text(
), // 'OK',
), // style: GoogleFonts.poppins(
onPressed: () { // color: Color(0xFFE26728),
Navigator.of(context).pop(); // ),
// Navigator.popAndPushNamed(context, 'home'); // ),
}, // onPressed: () {
), // Navigator.of(context).pop();
], // setState(() {
); // isEnrollCompletedStatus = true;
}, // });
); //
// // Navigator.popAndPushNamed(context, 'home');
// },
// ),
// ],
// );
// },
// );
} }
void _showErrorDialog() { void _showErrorDialog() {
@ -1746,7 +1754,107 @@ class _addOnsDetailsState extends State<addOnsDetails> {
} }
} }
return Scaffold( return isEnrollCompletedStatus == true ? Scaffold(
backgroundColor: const Color(0xFFF2F6FA), // Matches your light gray background
appBar: CustomAppBar(),
body: Center(
child: Container(
padding: Responsive.isDesktop(context)
? EdgeInsets.symmetric(
horizontal: MediaQuery.of(context).size.width *
0.2, // 30% of screen width as horizontal padding
vertical: MediaQuery.of(context).size.height *
0.03, // 5% of screen height as vertical padding
)
: EdgeInsets.all(10),
color: Colors.white,
child: Column(
mainAxisSize: MainAxisSize.min, // Shrink wrap to content
children: [
// Top logos
Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.network(
clientLogo ?? '', // Nhance logo
height: 40,
),
// Image.network(
// 'https://i.imgur.com/qOihOvk.png', // Prodapt logo
// height: 28,
// ),
],
),
const SizedBox(height: 32),
// Checkmark and message
const Icon(Icons.check_circle, size: 70, color: Color(0xFF1A73E8)),
const SizedBox(height: 24),
const Text(
'Congratulations!',
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
color: Color(0xFF2D2A4A),
),
),
const SizedBox(height: 12),
const Text(
'You have completed your enrolment. You can now close this tab',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 16,
color: Color(0xFF2D2A4A),
),
),
],
),
),
),
floatingActionButtonLocation: Responsive.isDesktop(context)
? null
: isTokenAvailable
? FloatingActionButtonLocation.miniEndFloat
: null,
bottomNavigationBar: Responsive.isDesktop(context)
? null
: isTokenAvailable
? CustomBottomNavigationBar(
onTabChanged: (index) {
// Add your navigation logic here
// For example:
if (index == 0) {
Navigator.pushNamed(context, 'home');
} else if (index == 1) {
Navigator.pushNamed(context, 'claims');
} else if (index == 2) {
Navigator.pushNamed(context, 'profile');
} else if (index == 3) {
Navigator.pushNamed(context, 'help');
} else if (index == 4) {
Navigator.pushNamed(context, 'wellness');
}
},
icons: [
Icons.home_outlined,
Icons.sticky_note_2_outlined,
Icons.person_outline_outlined,
Icons.headset_mic_outlined,
Icons.health_and_safety_outlined,
],
labels: [
"Home",
"Claim",
"Profile",
"Help",
"wellness",
],
initialIndex:
0, // Initial index of the bottom navigation bar
)
: null,
) : Scaffold(
appBar: CustomAppBar(), appBar: CustomAppBar(),
body: Stack(children: [ body: Stack(children: [
SingleChildScrollView( SingleChildScrollView(

View File

@ -599,15 +599,15 @@ class _empDetailsState extends State<empDetails> {
), ),
); );
}, },
errorBuilder: (BuildContext context, // errorBuilder: (BuildContext context,
Object error, StackTrace? stackTrace) { // Object error, StackTrace? stackTrace) {
return Image.asset( // return Image.asset(
'assets/Solid_gray.png', // Replace 'default_image.png' with your default image asset path // 'assets/Solid_gray.png', // Replace 'default_image.png' with your default image asset path
width: 80, // width: 80,
height: 80, // height: 80,
fit: BoxFit.cover, // fit: BoxFit.cover,
); // );
}, // },
), ),
), ),
), ),

View File

@ -168,6 +168,7 @@ class _empReviewDetailsState extends State<empReviewDetails> {
[]; // Declare this to store all disclaimers []; // Declare this to store all disclaimers
late List<bool> checkboxValues; late List<bool> checkboxValues;
bool isTokenAvailable = false; bool isTokenAvailable = false;
bool isEnrollCompletedStatus = false;
@override @override
void initState() { void initState() {
@ -1077,35 +1078,52 @@ class _empReviewDetailsState extends State<empReviewDetails> {
} }
void _showSuccessDialog() { void _showSuccessDialog() {
showDialog( setState(() {
context: context, isEnrollCompletedStatus = true;
builder: (BuildContext context) { });
return AlertDialog(
backgroundColor: Colors.white, // Wait 3 seconds, then navigate to home page
title: Text( Future.delayed(const Duration(seconds: 3), () {
'Success', if(isTokenAvailable) {
style: GoogleFonts.poppins( Navigator.pushNamed(context, 'home');
color: Colors.green, } else {
), Navigator.pushNamed(context, 'empDetails');
), }
content: Text('Enrollment Completed'), });
actions: <Widget>[
TextButton( // showDialog(
child: Text( // context: context,
'OK', // builder: (BuildContext context) {
style: GoogleFonts.poppins( // return AlertDialog(
color: Color(0xFFE26728), // backgroundColor: Colors.white,
), // title: Text(
), // 'Success',
onPressed: () { // style: GoogleFonts.poppins(
Navigator.of(context).pop(); // color: Colors.green,
// Navigator.popAndPushNamed(context, 'home'); // ),
}, // ),
), // content: Text('Enrollment Completed'),
], // actions: <Widget>[
); // TextButton(
}, // child: Text(
); // 'OK',
// style: GoogleFonts.poppins(
// color: Color(0xFFE26728),
// ),
// ),
// onPressed: () {
// Navigator.of(context).pop();
// setState(() {
// isEnrollCompletedStatus = true;
// });
//
// // Navigator.popAndPushNamed(context, 'home');
// },
// ),
// ],
// );
// },
// );
} }
void _showErrorDialog() { void _showErrorDialog() {
@ -1228,7 +1246,135 @@ class _empReviewDetailsState extends State<empReviewDetails> {
), ),
)); ));
} else { } else {
return Scaffold( return isEnrollCompletedStatus == true ? Scaffold(
backgroundColor: const Color(0xFFF2F6FA), // Matches your light gray background
appBar: CustomAppBar(),
body: Center(
child: Container(
padding: Responsive.isDesktop(context)
? EdgeInsets.symmetric(
horizontal: MediaQuery.of(context).size.width *
0.2, // 30% of screen width as horizontal padding
vertical: MediaQuery.of(context).size.height *
0.03, // 5% of screen height as vertical padding
)
: EdgeInsets.all(10),
color: Colors.white,
child: Column(
mainAxisSize: MainAxisSize.min, // Shrink wrap to content
children: [
SizedBox(height: 20),
Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.network(
clientLogo ?? '', // Nhance logo
height: 40,
),
// Image.network(
// 'https://i.imgur.com/qOihOvk.png', // Prodapt logo
// height: 28,
// ),
],
),
SizedBox(height: 32),
Icon(Icons.check_circle, size: 70, color: Color(0xFF1A73E8)),
SizedBox(height: 24),
Text(
'Congratulations!',
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
color: Color(0xFF2D2A4A),
),
),
SizedBox(height: 12),
Text(
'You have completed your enrolment. You can now close this tab',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 16,
color: Color(0xFF2D2A4A),
),
),
// const SizedBox(height: 12),
Container(
width: 180,
height: 150,
alignment: Alignment.centerRight,
child: ElevatedButton(
onPressed: () => {
if(isTokenAvailable) {
Navigator.pushNamed(context, 'home')
} else {
Navigator.pushNamed(context, 'empDetails')
}
},
child: Text(
'Return to Home',
style: GoogleFonts.poppins(
color: Colors.white),
),
style: ElevatedButton.styleFrom(
backgroundColor: Color(0xFFE26728),
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(5),
),
),
),
),
// const SizedBox(height: 20),
],
),
),
),
floatingActionButtonLocation: Responsive.isDesktop(context)
? null
: isTokenAvailable
? FloatingActionButtonLocation.miniEndFloat
: null,
bottomNavigationBar: Responsive.isDesktop(context)
? null
: isTokenAvailable
? CustomBottomNavigationBar(
onTabChanged: (index) {
// Add your navigation logic here
// For example:
if (index == 0) {
Navigator.pushNamed(context, 'home');
} else if (index == 1) {
Navigator.pushNamed(context, 'claims');
} else if (index == 2) {
Navigator.pushNamed(context, 'profile');
} else if (index == 3) {
Navigator.pushNamed(context, 'help');
} else if (index == 4) {
Navigator.pushNamed(context, 'wellness');
}
},
icons: [
Icons.home_outlined,
Icons.sticky_note_2_outlined,
Icons.person_outline_outlined,
Icons.headset_mic_outlined,
Icons.health_and_safety_outlined,
],
labels: [
"Home",
"Claim",
"Profile",
"Help",
"wellness",
],
initialIndex:
0, // Initial index of the bottom navigation bar
)
: null,
) : Scaffold(
backgroundColor: Colors.white,
appBar: CustomAppBar(), appBar: CustomAppBar(),
body: Stack(children: [ body: Stack(children: [
SingleChildScrollView( SingleChildScrollView(

View File

@ -1,5 +1,6 @@
import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
@ -57,6 +58,12 @@ class _loginState extends State<login> {
} }
// } // }
} else {
if(kIsWeb) {
final SharedPreferences prefs = await SharedPreferences.getInstance();
prefs.clear();
print('Local Storage Clear');
}
} }
} }

View File

@ -0,0 +1,122 @@
// import 'package:flutter/material.dart';
// import 'package:webview_flutter/webview_flutter.dart';
//
// class BotmanChatPage extends StatefulWidget {
// const BotmanChatPage({super.key});
//
// @override
// State<BotmanChatPage> createState() => _BotmanChatPageState();
// }
//
// class _BotmanChatPageState extends State<BotmanChatPage> {
// late final WebViewController _controller;
//
// @override
// void initState() {
// super.initState();
//
// _controller = WebViewController()
// ..setJavaScriptMode(JavaScriptMode.unrestricted)
// ..loadHtmlString(_htmlContent);
// }
//
// @override
// Widget build(BuildContext context) {
// return Scaffold(
// appBar: AppBar(title: const Text('Ask ILA')),
// body: WebViewWidget(controller: _controller),
// );
// }
// }
//
// const String _htmlContent = '''
// <!DOCTYPE html>
// <html lang="en">
// <head>
// <meta charset="UTF-8" />
// <meta name="viewport" content="width=device-width, initial-scale=1.0" />
// <style>
// html, body {
// margin: 0;
// padding: 0;
// height: 100%;
// }
// #botmanWidgetRoot svg {
// display: none !important;
// }
// </style>
// <script>
// const APIENDPOINT = 'https://venbait.in/nhance/chatbot';
// const APIAPIENDPOINT = 'https://venbait.in/nhance/chatbot';
//
// window.botmanWidget = {
// chatServer: APIENDPOINT + '/chat',
// frameEndpoint: APIAPIENDPOINT + '/widget',
// title: 'Ask ILA',
// introMessage: 'Hai Suren',
// bubbleBackground: '#007bff',
// mainColor: '#007bff',
// placeholderText: 'Type your message here...',
// aboutText: 'Insurance Assistant ILA',
// enableAttachments: false,
// parameters: {
// employee_id: '12288',
// session_id: 'XYZ789',
// origin: 'mobile',
// emp_code: 'HTL-007',
// client_id: 159,
// client_branch_id: 125,
// },
// };
// </script>
// <script src="https://cdn.jsdelivr.net/npm/botman-web-widget@0/build/js/widget.js"></script>
// </head>
// <body>
// </body>
// </html>
// ''';
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
class ChatbotWebViewPage extends StatefulWidget {
final String client_branch_id;
final String empCodeString;
final String empName;
final String empPrimaryId;
final String client_id;
const ChatbotWebViewPage({
Key? key,
required this.client_branch_id,
required this.empCodeString,
required this.empName,
required this.empPrimaryId,
required this.client_id,
}) : super(key: key);
@override
State<ChatbotWebViewPage> createState() => _ChatbotWebViewPageState();
}
class _ChatbotWebViewPageState extends State<ChatbotWebViewPage> {
late final WebViewController _controller;
@override
void initState() {
super.initState();
_controller = WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..loadRequest(
Uri.parse('https://venbait.in/nhance/dev/chatbot?employee_id=${widget.empPrimaryId}&emp_code=${widget.empCodeString}&origin=mob&name=${widget.empName}&client_id=${widget.client_id}&client_branch_id=${widget.client_branch_id}'),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Ask ILA')),
body: WebViewWidget(controller: _controller),
);
}
}

View File

@ -0,0 +1,30 @@
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
class MyWebViewPage extends StatefulWidget {
final String url;
const MyWebViewPage({Key? key, required this.url}) : super(key: key);
@override
_MyWebViewPageState createState() => _MyWebViewPageState();
}
class _MyWebViewPageState extends State<MyWebViewPage> {
InAppWebViewController? webViewController;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Web View")),
body: InAppWebView(
initialUrlRequest: URLRequest(
url: WebUri(widget.url),
),
onWebViewCreated: (controller) {
webViewController = controller;
},
),
);
}
}

View File

@ -18,6 +18,8 @@ import '../../customAppBar/customFooter.dart';
import '../../customAppBar/responsive.dart'; import '../../customAppBar/responsive.dart';
import '../../customAppBar/tabs.dart'; import '../../customAppBar/tabs.dart';
import '../../customAppBar/toastHelper.dart'; import '../../customAppBar/toastHelper.dart';
import 'botman_chat.dart';
import 'botman_ios_chat.dart';
import 'botman_widget_app.dart'; import 'botman_widget_app.dart';
import 'chatbot.dart'; import 'chatbot.dart';
// import 'dart:js' as js; // import 'dart:js' as js;
@ -40,6 +42,7 @@ class _HomeState extends State<Home> {
bool isActive = true; bool isActive = true;
dynamic _token; dynamic _token;
dynamic empCodeString; dynamic empCodeString;
dynamic empName;
dynamic empPrimaryId; dynamic empPrimaryId;
dynamic client_id; dynamic client_id;
dynamic policyList; dynamic policyList;
@ -177,6 +180,7 @@ class _HomeState extends State<Home> {
mobileNo = decodedToken['mobile']; mobileNo = decodedToken['mobile'];
client_branch_id = decodedToken['client_branch_id']; client_branch_id = decodedToken['client_branch_id'];
empCodeString = prefs.getString('empCode'); empCodeString = prefs.getString('empCode');
empName = prefs.getString('gpaEmpName');
print(empCodeString); // Check if emp_code is correct print(empCodeString); // Check if emp_code is correct
empPrimaryId = prefs.getString('empPrimaryId'); empPrimaryId = prefs.getString('empPrimaryId');
client_id = prefs.getString('client_id'); client_id = prefs.getString('client_id');
@ -809,13 +813,35 @@ class _HomeState extends State<Home> {
), ),
), ),
]), ]),
// floatingActionButton: Responsive.isDesktop(context) floatingActionButton: Responsive.isDesktop(context)
// ? null ? null
// : FloatingActionButton( : FloatingActionButton(
// onPressed: () => push(chatbot()), // onPressed: () => push(chatbot()),
// // onPressed: openChat, onPressed: () => {
// child: Icon(Icons.chat), // Navigator.push(
// ), // context,
// MaterialPageRoute(
// builder: (context) => MyWebViewPage(
// url: 'https://venbait.in/nhance/dev/chatbot?employee_id=${empPrimaryId}&emp_code=${empCodeString}&origin=mob&name=${empName}&client_id=${client_id}&client_branch_id=${client_branch_id}',
// ),
// ),
// )
Navigator.push(
context,
// MaterialPageRoute(builder: (context) => const BotmanChatPage()),
MaterialPageRoute(builder: (context) => ChatbotWebViewPage(
client_branch_id: client_branch_id,
empCodeString: empCodeString,
empName:empName,
empPrimaryId:empPrimaryId,
client_id:client_id,
)
),
)
},
child: Icon(Icons.chat),
),
floatingActionButtonLocation: Responsive.isDesktop(context) floatingActionButtonLocation: Responsive.isDesktop(context)
? null ? null
: FloatingActionButtonLocation.miniEndFloat, : FloatingActionButtonLocation.miniEndFloat,

View File

@ -9,6 +9,7 @@ import firebase_app_check
import firebase_auth import firebase_auth
import firebase_core import firebase_core
import firebase_messaging import firebase_messaging
import flutter_inappwebview_macos
import google_sign_in_ios import google_sign_in_ios
import local_auth_darwin import local_auth_darwin
import package_info_plus import package_info_plus
@ -24,6 +25,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin")) FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin")) FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
FLTFirebaseMessagingPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseMessagingPlugin")) FLTFirebaseMessagingPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseMessagingPlugin"))
InAppWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "InAppWebViewFlutterPlugin"))
FLTGoogleSignInPlugin.register(with: registry.registrar(forPlugin: "FLTGoogleSignInPlugin")) FLTGoogleSignInPlugin.register(with: registry.registrar(forPlugin: "FLTGoogleSignInPlugin"))
FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin")) FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin"))
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))

View File

@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
#version: 1.0.22+22 #version: 1.0.22+22
version: 1.0.8+9 version: 1.0.10+11
environment: environment:
sdk: '>=3.3.3 <4.0.0' sdk: '>=3.3.3 <4.0.0'
@ -60,6 +60,7 @@ dependencies:
package_info_plus: ^8.3.0 package_info_plus: ^8.3.0
webview_flutter: ^4.13.0 webview_flutter: ^4.13.0
webview_flutter_android: ^4.7.0 webview_flutter_android: ^4.7.0
flutter_inappwebview: ^6.1.5
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:

View File

@ -8,6 +8,7 @@
#include <firebase_auth/firebase_auth_plugin_c_api.h> #include <firebase_auth/firebase_auth_plugin_c_api.h>
#include <firebase_core/firebase_core_plugin_c_api.h> #include <firebase_core/firebase_core_plugin_c_api.h>
#include <flutter_inappwebview_windows/flutter_inappwebview_windows_plugin_c_api.h>
#include <local_auth_windows/local_auth_plugin.h> #include <local_auth_windows/local_auth_plugin.h>
#include <url_launcher_windows/url_launcher_windows.h> #include <url_launcher_windows/url_launcher_windows.h>
@ -16,6 +17,8 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
registry->GetRegistrarForPlugin("FirebaseAuthPluginCApi")); registry->GetRegistrarForPlugin("FirebaseAuthPluginCApi"));
FirebaseCorePluginCApiRegisterWithRegistrar( FirebaseCorePluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FirebaseCorePluginCApi")); registry->GetRegistrarForPlugin("FirebaseCorePluginCApi"));
FlutterInappwebviewWindowsPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FlutterInappwebviewWindowsPluginCApi"));
LocalAuthPluginRegisterWithRegistrar( LocalAuthPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("LocalAuthPlugin")); registry->GetRegistrarForPlugin("LocalAuthPlugin"));
UrlLauncherWindowsRegisterWithRegistrar( UrlLauncherWindowsRegisterWithRegistrar(

View File

@ -5,6 +5,7 @@
list(APPEND FLUTTER_PLUGIN_LIST list(APPEND FLUTTER_PLUGIN_LIST
firebase_auth firebase_auth
firebase_core firebase_core
flutter_inappwebview_windows
local_auth_windows local_auth_windows
url_launcher_windows url_launcher_windows
) )