mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-17 13:05:53 +08:00
30 lines
800 B
Dart
30 lines
800 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
void main() {
|
|
runApp(new MaterialApp(
|
|
// Title
|
|
title: "Using Custom Fonts",
|
|
// Home
|
|
home: new Scaffold(
|
|
// Appbar
|
|
appBar: new AppBar(
|
|
// Title
|
|
title: new Text("Using Custom Fonts"),
|
|
),
|
|
// Body
|
|
body: new Container(
|
|
// Center the content
|
|
child: new Center(
|
|
// Add Text
|
|
child: new Text("The quick brown fox jumps over the lazy dog",
|
|
textAlign: TextAlign.center,
|
|
style: const TextStyle(
|
|
color: Colors.blueAccent,
|
|
fontFamily: 'Pacifico',
|
|
fontWeight: FontWeight.w400,
|
|
fontSize: 36.0)),
|
|
),
|
|
),
|
|
)));
|
|
}
|