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

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: 27. Introduction Next episode: 29. Set the App Icon & Display Name

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

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!'),
  ),
),