Your First Flutter App: An App From Scratch

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

Part 2: Understand Flutter Widgets

12. Build an Interface

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: 11. Understand Widgets Next episode: 13. Write Dart Code

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've reached locked video content where the transcript will be shown as obfuscated text.

At this point, we’ll start composing our interface with widgets. Flutter comes with three types of widgets. A stateless widget, a stateful widget, and an inherited widget.

return Scaffold(
    
);
return Scaffold(
    body: Center(

    )
);
return Scaffold(
    body: Center(
      child: Column(
      ),
    ),
);
return Scaffold(
    body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
        ),
    ),
);
return Scaffold(
    body: Center(
        body: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: const <Widget>[

          ],
        ),
    ),
);
return Scaffold(
    body: Center(
        body: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: const <Widget>[
            Text('Bullseye'),
          ],
        ),
    ),
);
void main() {
  runApp(
    const MaterialApp(
      title: 'Bullseye',
      home: GamePage(),
    ),
  );
}
return Scaffold(
    body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text('Hello Bullseye'),
          ],
        ),
    ),
);
Text('Hello Bullseye',
    style: TextStyle(
        fontWeight: FontWeight.bold, color: Colors.green)),
children: <Widget>[
  const Text('Hello Bullseye',
      style: TextStyle(
          fontWeight: FontWeight.bold, color: Colors.green)),
  TextButton(
    child:
        const Text('Hit Me!', style: TextStyle(color: Colors.blue)),
    onPressed: () {
      print('hello');
    },
  ),
],