skip to Main Content

API Call with custom Body in dart flutter

I'm trying to call an API with a custom Body but I always the same error. Error 400 And the API return "can't json/yaml decode the argument" import 'dart:convert'; import 'package:http/http.dart' as http; import 'dart:developer' as developer; Future<dynamic> ApiDiolos() async…

VIEW QUESTION

Accessing statefull widget method in button widget file in flutter

I have this class name calculatorscreen inside that class I have function onBtnTap import 'buttonWidget.dart'; import 'button_values.dart'; class CalculatorScreen extends StatefulWidget { const CalculatorScreen({super.key}); @override State<CalculatorScreen> createState() => _CalculatorScreenState(); } class _CalculatorScreenState extends State<CalculatorScreen> { String firstNumber = ""; //.…

VIEW QUESTION
Back To Top
Search