mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-19 22:16:27 +08:00
15 lines
409 B
Dart
15 lines
409 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
TextStyle getCustomFontTextStyle() {
|
|
// text style which defines a custom font
|
|
return const TextStyle(
|
|
// set color of text
|
|
color: Colors.blueAccent,
|
|
// set the font family as defined in pubspec.yaml
|
|
fontFamily: 'Pacifico',
|
|
// set the font weight
|
|
fontWeight: FontWeight.w400,
|
|
// set the font size
|
|
fontSize: 36.0);
|
|
}
|