Fixing the Main App
Learn to integrate the required third-party packages.
We'll cover the following...
The main.dart
file has the main
function, which is the starting point of our app. So let’s fix it by configuring the following packages:
-
flutter_local_notifications
: This plugin allows the app to display local notifications to the user. -
google_mobile_ads
: This plugin allows the app to show mobile ads from Google’s ad network. -
firebase_core
: This plugin allows the app to use Firebase services, such as Firestore for data storage. -
provider
: This is a state management library for Flutter that allows the app to provide and consume values across the widget tree.
Let’s fix our main
method first.