-
Notifications
You must be signed in to change notification settings - Fork 74
/
googlefonts.dart
41 lines (38 loc) · 1.17 KB
/
googlefonts.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
//*********** https://fonts.google.com **********//
class MyGoogleFonts extends StatelessWidget {
const MyGoogleFonts({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.grey[900],
appBar: AppBar(title: const Text('Google Fonts')),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Text(
'SPACE INVADERS',
style:
GoogleFonts.pressStart2p(fontSize: 20, color: Colors.white),
),
Text(
'ubuntuMono',
style: GoogleFonts.ubuntuMono(fontSize: 35, color: Colors.white),
),
Text(
'molengo',
style: GoogleFonts.molengo(fontSize: 35, color: Colors.white),
),
Text(
'shadowsIntoLight',
style: GoogleFonts.shadowsIntoLight(
fontSize: 35, color: Colors.white),
),
],
),
),
);
}
}