April 2020
Intermediate to advanced
380 pages
9h 24m
English
Then is building the row title. We start by creating a stateful widget, FaceDetectionHome, inside the face_detection_home.dart file. FaceDetectionHomeState will contain all the methods required to build the first screen of the application.
Let's define a method called buildRowTitle() to create the text header:
Widget buildRowTitle(BuildContext context, String title) { return Center( child: Padding( padding: EdgeInsets.symmetric(horizontal: 8.0, vertical: 16.0), child: Text( title, style: Theme.of(context).textTheme.headline, ), //Text ) //Padding ); //Center}
The method is used to create a widget with a title using the value that is passed in the title string as an argument. The text is aligned to the center horizontally ...
Read now
Unlock full access