Issue I’m coding a flutter video game here.I have tried to test it on the web and it worked fine but when doing it on my physical device(phone) an error encountered on brick.dart file. As a beginner I would like
Continue readingTag: integer
How to compute an int from a recursive method in Dart?
Issue I want to compute the depth of a recursive object in Dart (kind of tree). Root node has a null as its parent. class MyNode { MyNode? parent; int get depth => 1 + ((parent == null) ? -1
Continue readingHow to compute an int from a recursive method in Dart?
Issue I want to compute the depth of a recursive object in Dart (kind of tree). Root node has a null as its parent. class MyNode { MyNode? parent; int get depth => 1 + ((parent == null) ? -1
Continue readinghow to set a number after calculating on a text view received by an edit text
Issue How can i put the number after calculated on the text view?? i can share more files if needed fun calcularIdade() { val editTextHello = findViewById<TextInputEditText>(R.id.Date) var num= Integer.parseInt(editTextHello.toString()) num = 2022-num Toast.makeText(this, editTextHello.text, Toast.LENGTH_SHORT).show() findViewById<TextView>(R.id.textView1).setText(num.toString()) } } <com.google.android.material.textfield.TextInputEditText
Continue readingWhat is a radix in integer class in dart programming?
Issue I am learning dart programming language for Flutter. In the integer class what does the word radix means ? Please explain me this. Thanks Solution Sometimes we have to work with string in radix number format. Dart int parse()
Continue readingPositive input exceeds the limit of integer – dart
Issue I have this function to convert hex to double. The values are some coordinates so the latitude should be a positive number and longitude a negative one. Something like this: 41.43757591162915, -8.418569400003188 For the Latitude works fine, but returns
Continue readingA value of type 'double' can't be assigned to a variable of type 'int'
Issue I have a SizedBox to which I want to set random height and width sizes with certain restrictions. I wrote a method for this, where I want to limit the height and width of the SizedBox to the size
Continue readingHow to make "int" based on number from database? – Java
Issue I’m making a game, so far I’ve made two buttons for the test. The first button makes a win, and the second one loses, all this is added to the database. int win_int = 0; int lose_int = 0;
Continue readingconvert int? to int in flutter
Issue i get int? variable from SharedPreferences class with getInt() method. I have to put this int? as a parameter for Duration Object but i need to have an int. What can I do? This is the code: int? duration
Continue readingflutter convert int to byte (flutter with PLC, RTC)
Issue i’m try to convert int to byte and cant find an example working fo me i need convert int in byte or bytes to sent in tcp ip final server = await ServerSocket.bind(ip,port); try{ server.listen((Socket socket) { int a
Continue reading