I have created simple API to store Username and Password in Node JS. Now i want to connect with Flutter. And I am using http package in flutter.HTTP version So anyone can help me with this ?
I have tried this..
void _saveForm() {
if (_formKey.currentState!.validate()) {
_formKey.currentState!.save();
}
var data = {
"email": formData['email'].toString(),
"password": formData['password'].toString(),
};
// ignore: avoid_print
print(data);
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Home(),
),
);
}