Helpful ways to strengthen your immune system and fight off disease
How can you improve your immune system? On the whole, your immune system does a remarkable job of defending you against disease-causing microorganisms. But sometimes it fails: A germ invades
Warning: there is a currently a bug in iOS simulator in which you have to manually select a Location several in order for the Simulator to actually send data. Please keep that in mind when testing in iOS simulator.
// Loading initial data or first request to get the data _getMoreData();
// Loading data after scroll reaches end of the list _scrollController.addListener(() { if (_scrollController.position.pixels == _scrollController.position.maxScrollExtent) { _getMoreData(); } }); }
// to show progressbar while loading data in background Widget _buildProgressIndicator() { returnnew Padding( padding:const EdgeInsets.all(8.0), child:new Center( child:new Opacity( opacity: isPerformingRequest ?1.0:0.0, child:new CircularProgressIndicator(), ), ), ); }
var response = await http.get(url); var jsonData = json.decode(response.body);
print(jsonData);
var usersData = jsonData["results"]; for (var user in usersData) { User newUser = User(user["name"]["first"] + user["name"]["last"], user["email"], user["picture"]["large"], user["phone"]); users.add(newUser); }
Download git https://git-scm.com/ if you want to add your project to bitbucket or github. you can use the following commands Step 1: Right Click-> Git Bash Here or go to the Project folder if you are not using git GUI tools Step 2: Type git init (For initializing git). Step 3: Type git add -A (Get all files in the staging area). Step 4: Type git commit -m "First Commit"(Commit Changes) Step 5: Type git remote add origin https://..bitbucket.org/../ABC.git (Your repo URL) Step 6: Type git push -f origin master(your branch name)