mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-31 06:40:04 +08:00
implemented custom font in using_custom_fonts example
This commit is contained in:
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
void main() {
|
||||
runApp(new MaterialApp(
|
||||
// Title
|
||||
// Title
|
||||
title: "Using Custom Fonts",
|
||||
// Home
|
||||
home: new Scaffold(
|
||||
@ -16,8 +16,14 @@ void main() {
|
||||
// Center the content
|
||||
child: new Center(
|
||||
// Add Text
|
||||
child: new Text("The quick brown fox jumps over the lazy dog"),
|
||||
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)),
|
||||
),
|
||||
),
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user