main library
Classes
- MyApp
- This class is the app itself, and its passed as an argument to runApp to launch the app. Requires as arguments a PersonalDataProvider and a DeviceProvider since they are built before running the app.
Functions
-
main(
) → void - This is the main function executed to launch the app. First it creates a PersonalDataProvider and a DeviceProvider. The reason only these providers are instanced before the builder is called is to obtain the model of the device using obtenerModelo and load the profiles stored in SharedPreferences using PersonalDataProvider.loadProfiles before displaying the home page.
-
obtenerModelo(
DeviceProvider dp) → Future< void> - This function is used to obtain the model of the device the app is being launched in It requires as an argument the DeviceProvider to call DeviceProvider.setDeviceModel