Posts by Chance • 488 points
22 posts
-
0
votes2
answers100
viewsA: Make textfield move when adding items in listview
I believe to be simple, add the textfield always after the last item. Video ListView( scrollDirection: Axis.vertical, shrinkWrap: true, children: List.generate(listaUsers.length, (index) { Widget…
-
1
votes1
answer232
viewsA: Where am I wrong in cheering up by showing and hiding widgets in the flutter?
So when this wrong is the order of execution, you call the animation before displaying the content, which breaks the sequence, first you must leave visible and then call the animation. And if you…
-
0
votes1
answer403
viewsA: Overlay Widgets - Flutter
In the cupertinotabview it manages the status and history of stacking the screens, why the screen is stacking under the menu. In the documentation it says that to stack a screen above the…
-
2
votes1
answer1226
viewsA: Return a list of flutter cards
Your medCard should look like this, the rest of the customization stays with you: final medCard = FutureBuilder<List<Medicos>>( future: getMedicos(http.Client()), builder: (context,…
-
1
votes1
answer395
viewsA: Relating Javascript file to an HTML
Good for that file page.js be loaded you should map a folder to static files in express. You can do as follows, create a folder public and tell the express that it will be your static file folder…
-
0
votes2
answers102
viewsA: How to manipulate Mongodb out of the configuration file?
Good afternoon I ended up making a cross comment I believe that because it has been a long time that I do not use the native driver, well let’s there one of the ways to load the driver with the…
-
2
votes1
answer1875
viewsA: Missingschemaerror: Schema hasn’t been Registered for model "Product"
app js. Not the need to instill the product in the app being already done in the controller, in the app is only opening the connection. Required if version of Mongoose is greater than 5.3.10…
-
0
votes1
answer84
viewsA: Generating PDF from a web page with Phantom
If you have difficulty here this the method, if you wanted to just export the method createPDF and import and pass url by parameter. const phantom = require('phantom'); async function createPDF(url)…
-
1
votes1
answer150
viewsA: How to Request External Nodejs File
You can do the following, use the module http to give a get and convert the path in xml for a object. I created as a Promise so you can use await in a Function async to wait for the get. const http…
-
0
votes1
answer31
viewsA: Add Css Style to a Viewport from a specific page in the visual studio bootstrap
To solve your problem it is quite simple to remove the margins of the body adding margin: 0 to the body and removing the padding from the .body-content, in reply I just commented the padding left…
-
0
votes0
answers11
viewsQ: Event click Owl-item just add
Good afternoon guys, I have several owlcarousel2 while performing some test I noticed the following item or various items that are added to Carousel using the add.owl.carousel are not dectados in…
-
0
votes1
answer742
viewsA: NODE.JS 'Connectionerror with MSSQL
As discussed in the comments, problem in connection string. Correct format of connection string. var config = { user: 'username', password: 'password', server: 'localhost/instancia', database:…
-
0
votes1
answer126
viewsA: ERROR while accessing JSON keys with special character
I believe this solves, I used Object.values() to take the values of the object. If the object is that way: data: { current-music: { singer: "NOME_BANDA", song: "NOME_MÚSICA" } } const dados =…
-
1
votes2
answers74
viewsA: http is not recognized in the Node Express project
As discussed in chat, problem in the version of the standard package of express. Did if necessary the installation of the package compatible with the version of @types. npm install @type/express…
-
5
votes1
answer243
viewsA: Express and Express Generator
First you don’t need to create the folder and you don’t need to give npm init, just follow what the documentation says. Install global Generator npm i express-generator -g Check available options…
-
0
votes1
answer192
viewsA: Generate an array from a query in mongoDB (Mongoose)
To pass the data and receive on the front. router.get('/home', isAuthenticated, function(req, res){ atendimento.find({}, (err, result) => { if(!err){ res.render('home', { result }) }else{…
-
1
votes1
answer881
viewsA: Get attribute inside an array in Mongodb
You want to apply a filter that only picks up these three fields within the right items. The findOne(conditions, [fields], [options], [callback]) or without callback with async/await. Would look…
-
1
votes1
answer624
views -
0
votes1
answer60
viewsA: Access one module from another
One way to do this is to pass the module next to require(): Example: require('controler')(app) Ai la on your controller you get it on module.exports and passes to the app the router. I also usually…
-
0
votes1
answer1137
viewsA: How to deploy an application in local Nodejs?
I usually use the pm2 to run the server as a service type. It is quite simple to use. npm install pm2@latest -g To use if it is at the root of the project, where the index.js, mains.js or server.js:…
-
0
votes1
answer34
viewsA: Simple Numbers Format Help
With the Precision to display how you want only do not know if it satisfies the use: toPrecision var total = 10.90; totalrealF = parseFloat(total).toPrecision(4) console.log(totalrealF) reference :…
-
2
votes1
answer181
viewsA: Adonisjs - Generate code from database already created
I don’t know the adonisjs, but the node and express yes and with it is possible yes, only encode the model in Ode according to the rules of the tables of your database and then can consume all the…