Creating the Event Detail screen

When the app is completed, users will interact with two screens: a list of event details, which is the program of the event, and a second screen for authentication.

We'll now create the event detail screen, as follows:

  1. First, let's create a new folder in the lib folder of the app, called screens.
  2. Next, we'll add a new file to the screens folder, called event_screen.dart.
  3. In the event_screen.dart file, let's import the material.dart library, and then create a stateless widget called EventScreen, as shown in the following code block:
import 'package:flutter/material.dart';class EventScreen extends StatelessWidget {  @override  Widget build(BuildContext context) {    return Container(    );  }}
  1. In the build() method ...

Get Flutter Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.