// Copyright 2014 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'; import 'headings_constants.dart'; export 'headings_constants.dart'; /// A test page with an app bar and some body text for testing heading flags. class HeadingsPage extends StatelessWidget { const HeadingsPage({super.key}); static const ValueKey _appBarTitleKey = ValueKey(appBarTitleKeyValue); static const ValueKey _bodyTextKey = ValueKey(bodyTextKeyValue); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( leading: const BackButton(key: ValueKey('back')), title: Semantics(headingLevel: 1, child: const Text('Heading', key: _appBarTitleKey)), ), body: const Center(child: Text('Body text', key: _bodyTextKey)), ); } }