blob: 4147c33f8f133619bcaec0ca1595203bfac1e015 [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({super.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,
),
),
);
}
}