Advertisement
AbiMulya

(Belajar Flutter) Text Style

Oct 7th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.82 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4.   runApp(MyApp());
  5. }
  6.  
  7. class MyApp extends StatelessWidget {
  8.   // This widget is the root  of your application.
  9.   @override
  10.   Widget build(BuildContext context) {
  11.     return MaterialApp(
  12.       home: Scaffold(
  13.         appBar: AppBar(
  14.           title: Text("Latihan Text Style"),
  15.         ),
  16.         body: Center(
  17.           child: Text("Ini adalah Text",
  18.               style: TextStyle(
  19.                   fontFamily: "CrashLandingBB",
  20.                   fontSize: 30,
  21.                   fontStyle: FontStyle.italic,
  22.                   decoration: TextDecoration.underline,
  23.                   decorationColor: Colors.red,
  24.                   decorationThickness: 5,
  25.                   decorationStyle: TextDecorationStyle.dotted)),
  26.         ),
  27.       ),
  28.     );
  29.   }
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement