Created
March 17, 2018 19:41
-
-
Save Kvaibhav01/aa262d11cbcf28781df79fa0de39983b to your computer and use it in GitHub Desktop.
Beautifying text in Flutter
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
import 'package:flutter/material.dart'; | |
class HomePage extends StatelessWidget | |
{ | |
@override | |
Widget build(BuildContext context) | |
{ | |
return new Material( | |
color: Colors.blue, | |
child: new InkWell( | |
child: new Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
new Text("Hello World!", style: new TextStyle(color: Colors.white, fontSize: 30.0),), | |
], | |
) | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment