Your First Flutter App: Polishing the App

Apr 12 2022 Dart 2.14.1, Flutter 2.5, Visual Studio Code

Part 4: Finish the App

28. Add an About Page

Lesson Complete

Play Next Lesson
Next
Save for later
About this episode
See forum comments
Cinema mode Mark as Complete Download course materials
Previous episode: 27. Introduction Next episode: 29. Set the App Icon & Display Name

This video was last updated on Apr 12 2022

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a kodeco.com Professional subscription.

Your game looks awesome and your to-do list is almost complete.

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

  @override
  Widget build(BuildContext context) {
    return Container();
  }
}
return Scaffold(
    appBar: AppBar(
    title: const Text('About Bullseye'),
    backgroundColor: Colors.red[700],
),
body: Center(
    child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        mainAxisSize: MainAxisSize.min,
        children: <Widget>[],
    ),
),
const Text(
  '🎉 Bullseye 🎉',
  style: TextStyle(
    fontWeight: FontWeight.bold,
    fontSize: 32.0,
  ),
),
const Text(
  'This is Bullseye, the game where you can win points and earn fame by dragging a slider.\n',
  style: TextStyle(
    fontWeight: FontWeight.bold,
    fontSize: 14.0,
  ),
),
const Text(
  'Your goal is to place the slider as close as possible to the target value. The closer your are, the more points you score.\n',
  style: TextStyle(
    fontWeight: FontWeight.bold,
    fontSize: 14.0,
  ),
),
const Text(
  'Enjoy!',
  style: TextStyle(
    fontWeight: FontWeight.bold,
    fontSize: 14.0,
  ),
),
Padding(
    padding: EdgeInsets.all(16.0),
    child: Text(
        "🎉 Bullseye 🎉",
        style: TextStyle(
           fontWeight: FontWeight.bold,
          fontSize: 32.0,
        ),
    ),
),
Padding(
    padding: const EdgeInsets.all(8.0),
    child: ElevatedButton(
        onPressed: () {
            
        },
        child: const Text('Go back!'),
    ),
),
import 'about.dart';
StyledButton(
  icon: Icons.info,
  onPressed: () { // old code
    Navigator.push(
      context,
      MaterialPageRoute(builder: (context) => const AboutPage()),
    );
  },
),
Padding(
  padding: const EdgeInsets.all(8.0),
  child: ElevatedButton(
    onPressed: () { // old code
      Navigator.pop(context);
    },
    child: const Text('Go back!'),
  ),
),