-
Notifications
You must be signed in to change notification settings - Fork 156
/
main.dart
38 lines (35 loc) · 1009 Bytes
/
main.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
import 'package:flutter/material.dart';
import 'package:google_fonts_tester/example_font_selection.dart';
import 'package:google_fonts_tester/example_simple.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData.light(useMaterial3: true),
home: DefaultTabController(
animationDuration: Duration.zero,
length: 2,
child: Scaffold(
appBar: AppBar(
title: const Text('Google Fonts Demo'),
bottom: const TabBar(
tabs: <Widget>[
Tab(text: 'Simple'),
Tab(text: 'Select a font'),
],
),
),
body: const TabBarView(
children: <Widget>[
ExampleSimple(),
ExampleFontSelection(),
],
),
),
),
);
}
}