Skip to content

Commit

Permalink
new font
Browse files Browse the repository at this point in the history
  • Loading branch information
apoleon33 committed Dec 29, 2023
1 parent e8e5ea2 commit 96ce431
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Binary file added fonts/CloisterBlack.ttf
Binary file not shown.
9 changes: 6 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class MyApp extends StatelessWidget {
useMaterial3: true,
),
themeMode: ThemeMode.dark,
home: const MyHomePage(title: 'Cradle'),
home: const MyHomePage(title: 'CRADLE'),
);
}
}
Expand Down Expand Up @@ -79,7 +79,6 @@ class _MyHomePageState extends State<MyHomePage> {
date = DateTime(date.year, date.month, date.day - 1);
albumCards.add(const SizedBox(height: 13));
albumCards.add(AlbumCard(time: date));

}

return Scaffold(
Expand All @@ -94,7 +93,11 @@ class _MyHomePageState extends State<MyHomePage> {
backgroundColor: Theme.of(context).colorScheme.surface,
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Center(child: Text(widget.title)),
title: Center(
child: Text(
widget.title,
style: TextStyle(fontFamily: 'Cloister'),
)),

actions: [
IconButton(onPressed: () {}, icon: const Icon(Icons.grid_view))
Expand Down
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ flutter:
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
fonts:
- family: Cloister
fonts:
- asset: fonts/CloisterBlack.ttf

style: normal
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
Expand Down

0 comments on commit 96ce431

Please sign in to comment.