Your First Flutter App: An App From Scratch

Feb 22 2022 · Dart 2.14.1, Flutter 2.5, Visual Studio Code 1.6

Part 3: Create UI with Flutter

20. Layout Widgets

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 19. Set an Orientation Next episode: 21. Add a Slider

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Here’s what the Bullseye screen will look like at the end of this course, but with all the visible widgets highlighted and labeled. Note that some of the widgets are invisible, and I’ll point them out to you soon. Note, the follow up course, we will complete the app there.

import 'package:flutter/material.dart';
class Prompt extends StatelessWidget {
  const Prompt({ Key? key }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      
    );
  }
}
final int targetValue;
const Prompt({Key? key, required this.targetValue}) : super(key: key);
Widget build(BuildContext context) {
    return Column(
        children: <Widget>[

        ]
    );
Text('PUT THE BULLSEYE AS CLOSE AS YOU CAN TO')
import 'package:flutter/material.dart';
class LabelTextStyle {

}
static TextStyle? bodyText1(BuildContext context) {

}
return Theme.of(context).textTheme.bodyText1?.copyWith(
    fontWeight: FontWeight.bold,
    fontSize: 12.0,
    color: Colors.black,
    letterSpacing: 2.0,
    );
import 'text_styles.dart';
Text(
    'PUT THE BULLSEYE AS CLOSE AS YOU CAN TO',
    style: LabelTextStyle.bodyText1(context)),
Text('$targetValue')
import 'prompt.dart';
const Prompt(targetValue: 100),