Skip to content

Instantly share code, notes, and snippets.

@HansMuller
Last active July 29, 2020 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HansMuller/6c86502944475d0bd8b57c62448c4d7e to your computer and use it in GitHub Desktop.
Save HansMuller/6c86502944475d0bd8b57c62448c4d7e to your computer and use it in GitHub Desktop.
// 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';
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Container(
color: Colors.green,
child: DefaultTextStyle(
style: Theme.of(context).textTheme.headline4,
textHeightBehavior: TextHeightBehavior(applyHeightToFirstAscent: false, applyHeightToLastDescent: false),
//textHeightBehavior: TextHeightBehavior(applyHeightToFirstAscent: true, applyHeightToLastDescent: true),
child: Builder(
builder: (BuildContext context) => Text('OUTLINED BUTTON'),
),
),
),
),
);
}
}
void main() {
runApp(MaterialApp(home: Home()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment