blob: f010a5d4a1dddbfdcb180df8f9fae3c9c015b10f [file] [log] [blame]
// Copyright 2019 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';
/// Text header.
///
/// Displays the given text using font headline4.
class HeaderText extends StatelessWidget {
const HeaderText(
this.text, {
Key key,
}) : super(key: key);
final String text;
@override
Widget build(BuildContext context) {
return Text(text, style: Theme.of(context).textTheme.headline4, textAlign: TextAlign.center);
}
}