Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() {
- runApp(MyApp());
- }
- class MyApp extends StatelessWidget {
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- home: Scaffold(
- appBar: AppBar(
- title: Text("Latihan Text Style"),
- ),
- body: Center(
- child: Text("Ini adalah Text",
- style: TextStyle(
- fontFamily: "CrashLandingBB",
- fontSize: 30,
- fontStyle: FontStyle.italic,
- decoration: TextDecoration.underline,
- decorationColor: Colors.red,
- decorationThickness: 5,
- decorationStyle: TextDecorationStyle.dotted)),
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement