Developing your first widget
In this section, we will use an existing app to create a widget on top of it step by step.
The app that we will work on is a crypto ticker, in which the user can check the latest prices of different cryptocurrencies. We will create a widget that will allow users to glance at crypto prices from their home screen, so they don't have to open the app itself.
Go ahead and open the project named CryptoWidget_start
from the code bundle of this chapter. This is the base project on top of which we will build our widget. Before jumping into the task, let's do a quick review of the base project itself.
Build and launch the project. The app displays a list of cryptocurrencies' prices:
You can also go into a detailed view of each coin, but just for demo purposes, it doesn't contain additional info. As we are going to work with an existing code base, let's highlight some key points...