Category : flutter

I am using chopper package to send requests to my backend, I have created small warehouse program, when I build it for desktop it works fine, but when I compile for web it throws this error, XMLHttpRequest error, I am using Open Server Panel for Windows. My code for API requests import ‘package:chopper/chopper.dart’; import ‘package:intermax_warehouse_app/BrigadeDetails/brigade_details.dart’; ..

Read more

In my flutter app am using an encryption package called encrypt . and am able to encrypt my chat messages using this code import ‘package:encrypt/encrypt.dart’; class TextEncrypt { final _iv = IV.fromLength(16); final key = Key.fromLength(32); String decrypt(String text) { final enc = Encrypter(AES(key)); final encrypted = Encrypted.fromBase64(text); return enc.decrypt(encrypted, iv: this._iv); } String encrypt(String ..

Read more

So I have made an encryption middleware in laravel that encrypts data using the following code public function handle($request, Closure $next) { return response()->json(encrypt($response->content()),$response->status()); } I ran the command php artisan:generate key So now I’m trying to decrypt this data from flutter I tried using encrypt package in flutter but still no luck in making ..

Read more