Category : dart

I’m new to flutter. I have here my dropdown list where i’ve fetched data from my server. String _mySelection; final String url = "http://10.23.13.0/schoolproj/fetch.php"; List data = List(); Future<String> getSWData() async { var res = await http .get(Uri.encodeFull(url), headers: {"Accept": "application/json"}); var resBody = json.decode(res.body); setState(() { data = resBody; }); And a Dropdown widget ..

Read more

I purchased FLUTTER project “android and ios” using cpanel designed with “PHP, CodeIgniter Framework” I ran into a problem like this: All content of the Flutter project is multilingual except for the categories as it appears in the picture, the name of the categories in English, and the classifications in French Categories can be accessed ..

Read more

Login page code import ‘package:carousel/UserDataDb.dart’; import ‘package:flutter/material.dart’; import ‘dart:convert’; import ‘package:http/http.dart’ as http; import ‘package:carousel/PortalPage.dart’; class LoginPage extends StatefulWidget { @override _LoginPageState createState() => _LoginPageState(); } class _LoginPageState extends State { bool visible = false ; // Getting value from TextField widget. final emailController = TextEditingController(); final passwordController = TextEditingController(); Future userLogin() async{ // Showing ..

Read more

When I am trying to hash a string with SHA256 algo with salt, it is generating different results in PHP and dart. PHP hash_hmac("sha256", $key, $data); Dart Hmac(sha256, utf8.encode(key)).convert(utf8.encode(data)).toString(); Using the package crypto for hashing in dart! I have tried everything that I can find, but the result never results the same. I need both ..

Read more