skip to Main Content

Flutter programing svg design

I designed a simple svg into this website and i'll to try programing that in flutter I have implemented the code using this approach: class AppbarBackgroundPainter extends CustomPainter { final Color color; AppbarBackgroundPainter(this.color); @override void paint(Canvas canvas, Size size) {…

VIEW QUESTION

Flutter app Azure MySQL server connection timeout error

I am developing a Flutter application in android studio. In a separate 'DbHelper.dart' file, the following code connects to Azure MySQL server. DbHelper.dart: import 'package:mysql1/mysql1.dart'; void main() async { final connSettings = ConnectionSettings( host: 'hostname.mysql.database.azure.com', port: 3306, user: 'user', password:…

VIEW QUESTION

Flutter – On parsing JSON in Dart getting type '_Map<String, dynamic>' is not a subtype of type 'String' error

So I have open api json response of model: { "object": "list", "data": [ { "id": "whisper-1", "object": "model", "created": 1677532384, "owned_by": "openai-internal", "permission": [ { "id": "modelperm-KlsZlfft3Gma8pI6A8rTnyjs", "object": "model_permission", "created": 1683912666, "allow_create_engine": false, "allow_sampling": true, "allow_logprobs": true, "allow_search_indices": false,…

VIEW QUESTION

how to execute two asynchronous functions with flutter?

I have two functions in flutter. the first one is belManager.writeCharacteristic and the second one is belManager.disonnect I want to execute belManager.disonnect() after belManager.writeCharacteristic is completed. However for some reason bleManager.disonenct() is called before belManager.writeCharacteristic is completed. this is the…

VIEW QUESTION
Back To Top
Search