Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Next, open the pubspec.yaml
file and make sure to have these two dev dependencies installed:”
A block of code is set as follows:
dev_dependencies: # https://pub.dev/packages/dart_code_metrics dart_code_metrics: ^4.9.1 # https://pub.dev/packages/flutter_lints flutter_lints: ^1.0.4
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
class TodosApp extends StatelessWidget { const TodosApp({ Key? key, required this.todoController, }) : super(key: key); final TodosController todoController;
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Create a new Flutter project in your favorite IDE and make sure to enable web support by clicking on the Add Flutter web support checkbox.”
Tips or Important Notes
Appear like this.