Blocs app scrollspy
Better to read them in from a config file that is read in when your app is built.īuild and run the project, and it will show an empty screen.
#BLOCS APP SCROLLSPY CODE#
Note: It’s a best practice for production apps to not store your API keys in source code or in your VCS. Then open zomato_client.dart in the DataLayer folder and change the constant just under the class declaration:įinal _apiKey = 'PASTE YOUR API KEY HERE' Go to the Zomato developer site at, create an account, and generate a new key. Get a Zomato API Keyīefore you build the app, you’ll need to get an API key. There are three files for talking to Zomato. When you open up the project it should look like this. The starter project contains some basic model and networking files. Make sure to run flutter packages get, either at the command line or when prompted by your IDE, to pull down the latest version of the http package.
#BLOCS APP SCROLLSPY ANDROID#
This tutorial will be using Android Studio, but you can also use Visual Studio Code if that’s your preference.