blob: ac3507e4f41fce14e2c7a01ae05a8badea60d445 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
const ValueKey<String> backKey = ValueKey<String>('backKey');
class AboutPage extends StatelessWidget {
const AboutPage({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: BackButton(
key: backKey,
onPressed: () => Navigator.of(context).pop(),
),
),
body: Center(
child: Text(
'This is a sample app.',
style: Theme.of(context).textTheme.displaySmall,
),
),
);
}
}