11/21/1
This commit is contained in:
@@ -1,26 +1,27 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:animated_text_kit/animated_text_kit.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:html/parser.dart' show parse;
|
||||
import 'package:ride/constant/api_key.dart';
|
||||
import 'package:ride/constant/box_name.dart';
|
||||
import 'package:ride/constant/colors.dart';
|
||||
import 'package:ride/constant/info.dart';
|
||||
import 'package:ride/constant/style.dart';
|
||||
import 'package:ride/constant/table_names.dart';
|
||||
import 'package:ride/controller/auth/captin/login_captin_controller.dart';
|
||||
import 'package:ride/main.dart';
|
||||
import 'package:ride/views/auth/captin/register_captin.dart';
|
||||
import 'package:ride/views/widgets/elevated_btn.dart';
|
||||
import 'package:ride/views/widgets/my_scafold.dart';
|
||||
import 'package:ride/controller/functions/llama_ai.dart';
|
||||
import 'package:ride/env/env.dart';
|
||||
|
||||
import '../../../constant/api_key.dart';
|
||||
import '../../../constant/box_name.dart';
|
||||
import '../../../constant/char_map.dart';
|
||||
import '../../../constant/colors.dart';
|
||||
import '../../../constant/credential.dart';
|
||||
import '../../../constant/info.dart';
|
||||
import '../../../constant/style.dart';
|
||||
import '../../../controller/auth/captin/login_captin_controller.dart';
|
||||
import '../../../controller/auth/login_controller.dart';
|
||||
import '../../../env/env.dart';
|
||||
import '../../../main.dart';
|
||||
import '../../widgets/elevated_btn.dart';
|
||||
import '../../widgets/my_scafold.dart';
|
||||
import '../../widgets/mycircular.dart';
|
||||
import 'register_captin.dart';
|
||||
|
||||
class LoginCaptin extends StatelessWidget {
|
||||
final controller = Get.put(LoginController());
|
||||
@@ -195,27 +196,32 @@ class LoginCaptin extends StatelessWidget {
|
||||
),
|
||||
IconButton(
|
||||
onPressed: () async {
|
||||
// String v = await storage.read(
|
||||
// key: BoxName.basicAuthCredentials) ??
|
||||
// '';
|
||||
// String v =
|
||||
// await storage.read(key: BoxName.serverAPI) ?? '';
|
||||
// print(v);
|
||||
// sql.deleteAllData(TableName.faceDetectTimes);
|
||||
AC credentials = AC();
|
||||
String apiKey = AK.secretKey;
|
||||
// // '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';
|
||||
credentials.gAK();
|
||||
String? apiKeyf =
|
||||
await storage.read(key: 'basicAuthCredentials');
|
||||
// AC credentials = AC();
|
||||
// String apiKey = AK.secretKey;
|
||||
// // // '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';
|
||||
// credentials.gAK();
|
||||
// String? apiKeyf =
|
||||
// await storage.read(key: BoxName.chatGPTkey);
|
||||
// print(apiKeyf);
|
||||
// String convertedString = credentials.c(apiKey, s);
|
||||
// String convertedStrings = credentials.c(apiKey, s);
|
||||
// print('Converted String s: $convertedStrings');
|
||||
// String convertedStringC =
|
||||
// credentials.c(convertedStrings, c);
|
||||
// print('Converted String C: $convertedStringC');
|
||||
// String convertedStringN = credentials.c(
|
||||
// credentials.c(credentials.c(apiKey, cs), cC), cn);
|
||||
// print('Converted String N: $convertedStringN');
|
||||
// print('v: $v');
|
||||
// 'AAAAinYllCo:APA91bF1shTpzSsSxqbfY6c60D8zs1ZsdIsl9ix6nl7GDdjCqWPRK0G0ub5SqFdb1jDpQDvQPxGg-697MWLo0sy3oYImBwBLObyhk0GjtNzyr0PbE3hI-pOvhf8Vp1xgUgBmofbZYXkH'
|
||||
// 'AAAAinYllCo:APA91bF1shTpzSsSxqbfY6c60D8zs1ZsdIsl9ix6nl7GDdjCqWPRK0G0ub5SqFdb1jDpQDvQPxGg-697MWLo0sy3oYImBwBLObyhk0GjtNzyr0PbE3hI-pOvhf8Vp1xgUgBmofbZYXkH'
|
||||
// // String convertedStringN = credentials.c(
|
||||
// credentials.c(
|
||||
// credentials.c(
|
||||
// 'QFx0qy456juj3839xuy2194q629q1fj0y7XrXlBl', cs),
|
||||
// cC),
|
||||
// // cn);
|
||||
// print('Converted v: $convertedStringN');
|
||||
// //
|
||||
// String retrievedStringN =
|
||||
// credentials.r(convertedStringN, n);
|
||||
@@ -226,15 +232,74 @@ class LoginCaptin extends StatelessWidget {
|
||||
|
||||
// String retrievedStringS = credentials.r(
|
||||
// credentials.r(
|
||||
// credentials.r(convertedStringN, cn), cC),
|
||||
// credentials.r(
|
||||
// 'QFx0qy456juj3839xuy2194q629q1fj0y7XrXlBl',
|
||||
// cn),
|
||||
// cC),
|
||||
// cs);
|
||||
// print('Retrieved String: $retrievedStringS');
|
||||
|
||||
// if (retrievedStringS == apiKey) {
|
||||
// print('same');
|
||||
// }
|
||||
// print(AK.basicAuthCredentials); //
|
||||
print(apiKeyf); //
|
||||
// print(' AK is ' + AK.chatGPTkey); //
|
||||
|
||||
// print(' ENV is ' + Env.chatGPTkey); //
|
||||
// // print('storage is ' + v); //
|
||||
// print('storage is ' + apiKeyf!); //
|
||||
String input = """
|
||||
[PAN
|
||||
I/flutter (28718): wOYARMAN
|
||||
I/flutter (28718): 2018 CHEV
|
||||
I/flutter (28718): ASN AORESS
|
||||
I/flutter (28718): rmv
|
||||
I/flutter (28718): REGISTRY MOTOR VEHICL ES
|
||||
I/flutter (28718): NEGIS TRATNWIYPE
|
||||
I/flutter (28718): RSNTN AORLS( OrreRCNT THAN MALINO)
|
||||
I/flutter (28718): Passenger Normal Red
|
||||
I/flutter (28718): 274
|
||||
I/flutter (28718): SILVERADO
|
||||
I/flutter (28718): ESSSENOSTOoN
|
||||
I/flutter (28718): Neso WNRS) ANO MALING ADOSES
|
||||
I/flutter (28718): 274 CHATTERTON AVE SOMERSET MA 02726-2939
|
||||
I/flutter (28718): CHRISTOPHER D WALL
|
||||
I/flutter (28718): 74 CHATTERTON AVE
|
||||
I/flutter (28718): SOMERSET NA
|
||||
I/flutter (28718): A 02726-2939
|
||||
I/flutter (28718): OEL NUMICR
|
||||
I/flutter (28718): RAIL NUMOER
|
||||
I/flutter (28718): 4DGY18
|
||||
I/flutter (28718): oooY aYE
|
||||
I/flutter (28718): PU
|
||||
I/flutter (28718): M.G.L. Chapter 90 Section 24B makes it a crime to alter this Certificate
|
||||
I/flutter (28718): MASSACHUSETTS DEPARTMENT OF TRANSPORTATION
|
||||
I/flutter (28718): his vehicle is newty acquired, it must be inspected within 7 days
|
||||
I/flutter (28718): of registration
|
||||
I/flutter (28718): CERTIFICATE OF REGISTRATION
|
||||
I/flutter (28718): rECVE DATE
|
||||
I/flutter (28718): 21-Sep-2023
|
||||
I/flutter (28718): Cancel the registration plates if:
|
||||
I/flutter (28718): COLoR
|
||||
I/flutter (28718): BLACK
|
||||
I/flutter (28718): CHANGE OF ADORESS
|
||||
I/flutter (28718): TITLE NUMUER
|
||||
I/flutter (28718): VEHICLE IDENTIFICATION NUMDCR
|
||||
I/flutter (28718): EXPIRES ON
|
||||
I/flutter (28718): 1GCVKREC7JZ169002
|
||||
I/flutter (28718): TOTAL RE GISTERED WEIGHT FOR A COMMERCIAL VEICLE CR TRALER
|
||||
I/flutter (28718): US DOT LMBER FOR COMMERCAL, VEHICLE
|
||||
I/flutter (28718): HSURWCE COMPi
|
||||
I/flutter (28718): PLYMOUTH ROCK ASSURANCE
|
||||
I/flutter (28718): CORPORATION
|
||||
I/flutter (28718): MAMUM SEATVG CAPACIIYFHVEGES FOK HRE
|
||||
I/flutter (28718): | RESIDENTIAL
|
||||
I/flutter (28718): Important information for vehicle owners
|
||||
I/flutter (28718): oun f9nia Rogistrar of Motor Vehicles
|
||||
I/flutter (28718): 31-Aug-2025
|
||||
I/flutter (28718): MAILING
|
||||
I/flutter (28718): Cert]""";
|
||||
|
||||
await LlamaAi().getExractionData(input);
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.close,
|
||||
|
||||
Reference in New Issue
Block a user