Note: The database used for the app is Supabase, which handles both data storage and user authentication with Google.
The procedures on which the proposed authentication is based can be found in the following resources:
Note: Create a .env file to store the environment variables used by the app for authentication.
GOOGLE_CLIENT_ID=your_google_client_id
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_key
AUTH0_CUSTOM_SCHEME=your_auth0_scheme
AUTH0_CLIENT_ID=your_auth0_id
AUTH0_DOMAIN=your_auth0_domainIn addition to setting up the .env file, you need to modify the following files for proper configuration:
android/build.gradleandroid/app/build.gradleandroid/app/src/main/AndroidManifest.xml
Follow the code examples provided in the project for the necessary changes.
You must also create or update the strings.xml file in the android/app/src/main/res/values/ directory. The file should include the following content:
<resources>
<string name="com_auth0_domain">your_auth0_domain</string>
<string name="com_auth0_scheme">your_auth0_scheme</string>
</resources>For this project, a custom scheme has been configured with the value demo instead of https. This approach avoids the need to configure an application key.
When utilizing a callback URL with the https protocol, it is necessary to provide an application key here:
Since this application is intended as an educational example, the decision was made to use a simplified scheme (demo) to facilitate local testing without additional dependencies.
The authentication for the events_app services, however, uses https.
Note: to access via auth0 authentication, request credentials from the owner of this repository.
When using the google_sign_in library in Flutter and the Google API for authentication, no additional configuration is required for Android. However, it is essential to ensure that a Web Client ID has been configured, as shown in the figure below:
Where in authorized URIs the Supabase one has been put in this case.
All session data is saved in a JSON file located at the path /data/user/0/EVENTSAPP_PACKAGE/app_flutter on the device. This file is accessible through the data_controller.
The user interface (UI) of the application is intentionally simple, designed solely to demonstrate the app's functionality.
Below are some screenshots showcasing the app:
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.







