Posts by Leonardo Paim • 1,061 points
46 posts
-
0
votes1
answer48
viewsA: Problem for alignment
If your wish is to place beside, I imagine the idea is to have a Line with 2 components. In your code there is only the column by placing one below the other. Make a change and enter the Widget Row…
-
0
votes2
answers670
viewsA: Flutter Dart -> Capturing data from a class that receives json
The initial idea of this "serialization" that you mounted on your model is to receive a map of some method and turn it into objects of the class type. Then you will build a Category from a Map. #…
-
3
votes1
answer54
viewsA: Update method with flutter and sqlite generating error
The problem is occurring because the database was not initialized and has the value nulo. With that the method update cannot be used. The solution is to initialize the db before the method call…
-
2
votes1
answer246
viewsA: How do I know if my development environment is compatible with Androidx?
Android X To better understand what the AndroidX read the Overview of Androidx that explains in more detail the theme. Highlight for a brief understanding: Androidx is a major improvement to the…
-
1
votes1
answer138
viewsQ: Set the application version to the default 4 numbers
A company has had a standardized version of projects for many years and would like to continue using this standard to keep things easy in its environment. This standard that was adopted uses the…
-
1
votes1
answer226
viewsA: Set DEFAULT value with empty string and not as NULL in Sqlite3
After doing a lot of research after the comment from Daniel Mendes, I decided to install several clients for my database, and in comparative the problem is actually from Navcat. It displays the data…
-
0
votes1
answer226
viewsQ: Set DEFAULT value with empty string and not as NULL in Sqlite3
I created a table on sqlite determining columns with value DEFAULT. The example column is "name_fantasy" and in it I informed that it would be DEFAULT '' (Empty string). When trying to insert a data…
-
1
votes1
answer118
viewsA: I’m having a stupid question, but it’s been a while and I don’t know how to solve it. (Mysql)
ERROR 1064: You have an error in your SQL syntax; check the manual that Corresponds to your Mysql server version for the right syntax to use near '-01-01 The message informs that the problem is in…
-
5
votes3
answers97
viewsA: How do I know if a package is dev_dependencies or dependencies?
The response of Matheus Ribeiro is well written and complete. I believe it should be considered as the best response. Just supplementing what was explained by him due to a slight (healthy) ambiguity…
-
1
votes2
answers836
viewsA: Checkbox in the Flutter
I recommend you study the documentation of the components Listtile and Checkboxlisttile to better understand how they work. Remember that they were created only to facilitate the implementation of…
-
2
votes2
answers1773
viewsA: How to sort a list of objects in Dart?
The problem in your case is only the type of data you are using for sorting. In the current format that is encoded the order is correct by observing the type String which are common texts. As you…
-
2
votes2
answers235
viewsA: How to run all my tests at once?
[Edit] If your tests are grouped in several paths and folders you must leave them inside the directory test of the project and all files must have the suffix _test.dart. With this configuration done…
-
2
votes1
answer913
viewsA: Image in flutter’s Image.network URL does not work on physical device
Problem occurs because you do not have internet access permission set up. In mode Debug the framework already has treatments to block this access. Already in the mode release it is necessary to…
-
2
votes2
answers314
viewsA: Conditional with async in flutter
Using a FutureBuilder may wait until the method is processed. Example import 'package:flutter/material.dart'; final Color darkBlue = Color.fromARGB(255, 18, 32, 47); void main() { runApp(MyApp()); }…
-
1
votes1
answer140
viewsA: Error in Calculus
Incorrect type conversion. In your case you are trying to enter type value double in a variable of type int and this is not possible by the typing rules of dart. In the declaration of your variables…
-
1
votes1
answer132
viewsA: Drawer all white, nothing shows up
The problem is the mode that is calling Drawer. To work add a key in his Scaffold and then call it by clicking the button. Example import 'package:flutter/material.dart'; final Color darkBlue =…
-
1
votes2
answers290
viewsA: How to search whether a string array contains in another string array. Using complete and incomplete words
One of the possible implementations: void main() { // Exemplo 1 List array1 = ['Escola','Estadual','José','da','silva']; List buscas = ['José','Silva','Estad']; bool achouExemplo1 =…
-
0
votes1
answer308
viewsA: Flutter cannot find pubspec.yaml when running run run
The directory you are running the command in is not the project root directory. The command flutter run needs to run in a folder that contains the files of the flutter project and the pubspec.yaml…
-
3
votes1
answer1219
viewsA: How to check if a date is a working day?
In general, working days are those that are not Saturday, Sunday or holiday. Taking that as a basis a way of doing it would be: void main() { // Data que está validando se é dia util. var data =…
dartanswered Leonardo Paim 1,061 -
2
votes1
answer2743
viewsA: Flutter: type 'Future<Dynamic>' is not a subtype of type widget
Its return shows that the component expects to be passed to it an element of the type Widget but you’re passing an element of the kind Future<Widget>. Futures are returned whenever the method…
-
1
votes1
answer86
viewsA: How do I getter my request in flutter?
The response that you get from the request does not have the attribute token that is trying to access. In this case what should be done is to convert the body and thus obtain a map with the values…
-
0
votes2
answers524
viewsA: Why this mistake in decorating my container on the flutter?
Container has a color validation. If you are using a decoration cannot use the attribute color out of it. In this case the color must be moved into the decoration attribute. Example Container(…
-
0
votes1
answer518
viewsA: Day Scrolling for Month Scrolling
One of the ways to do this is to create a new date when you click the "back" or "front" arrow". Example: Declare some attributes in your class to mount the date // Depende da sua regra identificar a…
-
0
votes2
answers1622
viewsA: Where are the application files in the Android Studio emulator
Android will save the Sqlite files in a directory called "Databases" inside the app package on the operating system. To access this directory in an easy way, open Android Studio and find the option…
-
1
votes1
answer186
viewsA: Insert Image after Gridview
You have on your screen the Scaffold and it has encoded 2 properties in its code, the appBar and the body. Everything that is drawn in the body of the screen must be encoded inside the body. For…
-
4
votes2
answers4378
viewsA: Positioning in flutter columns
The properties that allow to position the elements in the column are the mainAxisAlignment (alignment in the main direction of the widget, which in this case is vertical because it is a column) and…
-
2
votes1
answer361
viewsA: How to access Drawermenu in the multi-screen flutter?
Create a new file called "Customdrawer" and insert a new Widget (it could be Stateless). Put the code of your Drawer in the "Return" of this widget. Drawer( child: ListView( padding:…
-
0
votes0
answers179
viewsQ: Error making android HTTP request
I’m implementing a native android app that requests with a WS. When trying to make the connection in the method connect() of HttpURLConnection I’m getting an error that doesn’t fall into the catch…
-
0
votes2
answers132
viewsA: Dynamic button layout in Android Layout
I managed to find the way that solves my problem. What I did was to implement the Grid Layout which is also a list but is displayed in rows and columns that I can dynamically calculate to be able to…
android-layoutanswered Leonardo Paim 1,061 -
0
votes1
answer1400
viewsQ: Local Storage with React Native
I’m creating an application that needs to store some data locally. These are simple data such as a "Route" path for HTTP request, or a field with a "time" that will be used for the application to do…
react-nativeasked Leonardo Paim 1,061 -
0
votes2
answers132
viewsQ: Dynamic button layout in Android Layout
I am developing an application that needs to have a series of custom buttons on the home screen. The amount of buttons that will be displayed will be configured. Having this information at my…
android-layoutasked Leonardo Paim 1,061 -
1
votes1
answer60
viewsQ: Help with Select query in Mysql
I have the "customers" table and I have another one called "products". Each customer has several products where the products table tuples have the customer id to reference. I need a Select that…
mysqlasked Leonardo Paim 1,061 -
1
votes6
answers922
viewsA: Listview very long
Search for the use of Custom Lists on Android using Adapters. Try to work with the implementation this way because it allows you to define the Layout of each line that will be presented. There is a…
-
0
votes1
answer719
viewsA: Pass text to an Edittext
editCodigo.setText("seu código de barras"). This allows your field that has already been declared in the class to receive the value that has been read.
-
0
votes1
answer138
viewsA: Ionic 3 - CLI Generate does not make the module file
Apparently this was removed from Ionic temporarily. There is a solution for you to use this creation behavior of .module ts.. To re-create the file you have the possibility to downgrade the scripts…
ionicanswered Leonardo Paim 1,061 -
0
votes4
answers45
viewsA: How to pass a text from the database to display it as a link on a website
I believe you are seeking to implement a common link on your page... Here is an example of implementation: Example of link implementation Whatever you want to display as a link will always be…
-
1
votes3
answers1182
viewsA: Pagination in PHP
By the pagination concepts I use a way to solve your problem would be the implementation of a second parameter in the LIMIT of your query. Following a logic of reasoning for you to implement,…
-
1
votes1
answer21
viewsA: Questions about installing and using PHP
In order to use PHP on your machine locally, you must install an environment that plays the role of server for your project. Packages like WAMP or XAMPP are the most common to be used for this…
phpanswered Leonardo Paim 1,061 -
2
votes1
answer193
viewsA: Methodology for planning a mobile app
Thinking about Mobile App development can be seen equally as developing any software. You can find some methods that might have been created by focusing exactly on mobile development. Personally, I…
-
5
votes2
answers11063
viewsA: How to use % in Portugol
In any mathematical calculation to use the "percentage" just follow the logic of multiplying the desired value by the number of the percentage divided by 100. Example: 15% of 200,00: 200 * (15 /…
-
2
votes3
answers367
viewsA: MYSQL relationship between tables
Tables are usually called to make it easier to write the Script that by syntax requests the use of "Table name" and "Field name" (e.g., category.name) in cases where the field name exists in more…
mysqlanswered Leonardo Paim 1,061 -
0
votes1
answer349
viewsA: Mysql Split by ZERO, SQL_MODE = 'TRADITIONAL'?
EDIT According to the documentation that can be accessed at this link, division by zero does not return error for a command SELECT. For SELECT, Division by zero Returns NULL. Enabling…
mysqlanswered Leonardo Paim 1,061 -
4
votes2
answers1726
viewsA: How to create a Library-Android using Android Studio?
I was successful in creating my Library. The tutorial mentioned in Leonardo Dias' reply provided me with a greater understanding of how construction and compilation works. However I could not fully…
-
4
votes2
answers1726
viewsQ: How to create a Library-Android using Android Studio?
I have some projects in development process and have several common classes for these projects. I would like to know how to create and use a Lib of the classes so I can reuse them whenever I need…
-
3
votes1
answer963
viewsQ: How to change the color of the bottom bar, where the buttons "Back", "Home" and "Active App" are located?
I would like to know first what the name of the component (bar) where are located the buttons "Back", "Home" and "App active" on android. In devices that do not have physical buttons for this…
-
3
votes1
answer2296
viewsQ: Format date on Android and Sqlite
I am having difficulty in making the process of setting the current date of my Sqlite database in the type attribute java.util.Date of my object. The Sqlite date comes in "yyyy-MM-dd" format. I am…