Last active
March 17, 2018 19:15
-
-
Save Kvaibhav01/a3db62567e146a2ddfa0920be44fa057 to your computer and use it in GitHub Desktop.
Making a text widget in Flutter
This file contains hidden or 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( | |
children: <Widget>[ | |
new Text("Hello World!"), | |
], | |
) | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment