55
loading...
This website collects cookies to deliver better user experience
$ flutter pub add google fonts
Dependencies: google_fonts:
import 'package:google fonts/google fonts.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
class Google_Font_Example extends StatefulWidget {
@override
State createState() {
return new _Google_Font_ExampleState();
}
}
class _Google_Font_ExampleState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Google_Fonts"),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Text("Google Font : aBeeZee()",
style: GoogleFonts.aBeeZee(
textStyle: const TextStyle(fontSize: 25))),
Text("Google Font : able()",
style: GoogleFonts.abel(
textStyle: const TextStyle(fontSize: 25))),
Text("Google Font : abhayaLibre()",
style: GoogleFonts.abhayaLibre(
textStyle: const TextStyle(fontSize: 25))),
Text("Google Font : balooDa2()",
style: GoogleFonts.balooDa2(
textStyle: const TextStyle(fontSize: 25))),
Text("Google Font : commissioner()",
style: GoogleFonts.commissioner(
textStyle: const TextStyle(fontSize: 25))),
Text("Google Font : epilogue()",
style: GoogleFonts.epilogue(
textStyle: const TextStyle(fontSize: 25))),
Text("Google Font : elsie()",
style: GoogleFonts.elsie(
textStyle: const TextStyle(fontSize: 25))),
Text("Google Font : crushed()",
style: GoogleFonts.crushed(
textStyle: const TextStyle(fontSize: 25))),
Text("Google Font : inriaSans()",
style: GoogleFonts.inriaSans(
textStyle: const TextStyle(fontSize: 25))),
Text("Google Font : zenLoop()",
style: GoogleFonts.zenLoop(
textStyle: const TextStyle(fontSize: 25))),
Text("Google Font : freckleFace()",
style: GoogleFonts.freckleFace(
textStyle: const TextStyle(fontSize: 25))),
],
),
));
}
}