flutter fetch database from mysql using php 1

flutter fetch database from mysql using php

flutter fetch database from mysql using php
follwoing github link has 2 folders with one-one files just copy and paset it
1. paste main.dart file from flutterApp... in your lib folder
2. paste home.php file from xamppServer... in your htdocs folder 

Here is what the above code is Doing:
1. The main function is the starting point for all our Flutter apps.
2. The runApp function takes the given Widget and makes it the root of the widget tree.
3. The MaterialApp is a predefined Widget that returns a Material Design themed app.
4. The Scaffold Widget provides a default app bar, title, and a body property that holds the widget tree for the home screen.
5. The body of the Scaffold holds a Center Widget.
6. The Center Widget aligns its widget subtree to the center of the screen.
7. The Center Widget has a child property that holds a Text Widget.
8. The Text Widget displays the string ‘Hello, World!’

Similar Posts