Last active
July 29, 2020 22:13
-
-
Save HansMuller/6c86502944475d0bd8b57c62448c4d7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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