Created
August 30, 2019 16:55
-
-
Save manofi21/bf3e086ee444b742445eac9eb3180c09 to your computer and use it in GitHub Desktop.
how to show text in dart
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'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home:Text('Simple text demo.', | |
style: TextStyle( | |
color: Colors.blue, | |
fontSize: 32.0, | |
fontStyle: FontStyle.italic, | |
decoration: TextDecoration.underline), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment