ABSTRACT

In this chapter, you will develop your understanding of the Flutter application's structure and basic building blocks. Two of the primary Flutter widgets StatelessWidget and StatefulWidget are introduced. You will learn by building a fundamental application called HelloBooksApp. This is a simple app that displays a greeting text ‘Hello Books’ in the middle of the screen. The screen has a floating action button with a smiley icon to change the language of the greeting text. When this floating action button is clicked, a greeting text of a different language is randomly picked from a given list and displayed on the screen. First, you'll build a bare minimum implementation for displaying the text string. Then, you will improvise the interface by using material component widgets like MaterialApp, Container, AppBar, Scaffold, FloatingActionButton, Text, etc. Finally, a stage-management widget StatefulWidget will be used to update the text string on the click of floating action button. This chapter discusses the anatomy of bare minimum application as well as the final version of the app.