Get Familiar with Dart Syntax and Flutter Classes

In this first section of the chapter, we’ll take a look at the Flutter CLI’s example code, review how to work with Dart code, and learn the basics of Flutter app architecture and implementation.

To create a new Flutter app, create a directory to contain the app’s source code and, inside it, another directory called lib. The lib directory is where we’ll add our Dart files defining what our app looks like and what our app does.

For now we won’t work in the CLI, but once we’re ready to build the app we will use flutter create to generate the files that are necessary for the app to build (which you’ll get to know and edit in the appendix about app configuration). In addition to the files and directories ...

Get Programming Flutter 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.