Build: Analytics Demo Screen
This screen logs a custom event to Firebase Analytics when a button is pressed and shows a confirmation message.
Target UI
┌───────────────────────────────┐ │ Analytics Demo │ ├───────────────────────────────┤ │ │ │ [ Log Custom Event ] │ │ │ └───────────────────────────────┘
Add a button labeled 'Log Custom Event'.
When the button is pressed, log a custom event named 'button_pressed' with a parameter 'button_name' set to 'Log Custom Event'.
Show a SnackBar confirming the event was logged.
Initialize Firebase Analytics properly.