Skip to content

Commit

Permalink
Changed fonts of sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreya-Bhatia committed Jul 13, 2024
1 parent fa67c36 commit f115af9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
Binary file added assets/fonts/Karla-VariableFont_wght.ttf
Binary file not shown.
Binary file added assets/fonts/Montserrat-Regular.ttf
Binary file not shown.
13 changes: 12 additions & 1 deletion lib/new_ui/screens/main_screen/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,10 @@ class _MainScreenState extends ConsumerState<MainScreen> {
.of(context)
.textTheme
.headlineLarge!
.copyWith(fontSize: 20),
.copyWith(
fontSize: 20,
fontFamily: 'Karla'
),
),
SizedBox(height: 5,),
Text(
Expand Down Expand Up @@ -478,6 +481,7 @@ class _MainScreenState extends ConsumerState<MainScreen> {
.headlineMedium!
.copyWith(
fontSize: 13,
fontFamily: 'Montserrat',
color: currentPage == 0
? Theme
.of(context)
Expand Down Expand Up @@ -524,6 +528,7 @@ class _MainScreenState extends ConsumerState<MainScreen> {
.headlineMedium!
.copyWith(
fontSize: 13,
fontFamily: 'Montserrat',
color: currentPage == 7
? Theme
.of(context)
Expand Down Expand Up @@ -555,6 +560,7 @@ class _MainScreenState extends ConsumerState<MainScreen> {
.headlineSmall!
.copyWith(
fontSize: 13,
fontFamily: 'Montserrat',
color: currentPage == 6
? Theme
.of(context)
Expand Down Expand Up @@ -590,6 +596,7 @@ class _MainScreenState extends ConsumerState<MainScreen> {
.headlineSmall!
.copyWith(
fontSize: 13,
fontFamily: 'Montserrat',
color: currentPage == 5
? Theme
.of(context)
Expand Down Expand Up @@ -660,6 +667,7 @@ class _MainScreenState extends ConsumerState<MainScreen> {
.headlineMedium!
.copyWith(
fontSize: 13,
fontFamily: 'Montserrat',
color: Colors.white,
),
),
Expand Down Expand Up @@ -690,6 +698,7 @@ class _MainScreenState extends ConsumerState<MainScreen> {
.headlineMedium!
.copyWith(
fontSize: 13,
fontFamily: 'Montserrat',
color: currentPage == 4
? Theme
.of(context)
Expand All @@ -713,6 +722,7 @@ class _MainScreenState extends ConsumerState<MainScreen> {
.headlineSmall!
.copyWith(
fontSize: 13,
fontFamily: 'Montserrat',
color: currentPage == 5
? Theme
.of(context)
Expand Down Expand Up @@ -744,6 +754,7 @@ class _MainScreenState extends ConsumerState<MainScreen> {
.headlineSmall!
.copyWith(
fontSize: 13,
fontFamily: 'Montserrat',
color: currentPage == 5
? Theme
.of(context)
Expand Down
7 changes: 7 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ flutter:
weight: 400
- asset: assets/fonts/SF-Pro-Text-Semibold.otf
weight: 600
- family: Montserrat
fonts:
- asset: assets/fonts/Montserrat-Regular.ttf
weight: 400
- family: Karla
fonts:
- asset: assets/fonts/Karla-VariableFont_wght.ttf
- family: Priego
fonts:
- asset: assets/fonts/priego-extrabold.otf
Expand Down

0 comments on commit f115af9

Please sign in to comment.