Skip to content

Commit

Permalink
add poppins font
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidatorCoder committed Nov 15, 2021
1 parent d081607 commit e3c2f6d
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 9 deletions.
33 changes: 31 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'dart:async';
import 'package:bitsdojo_window/bitsdojo_window.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:odin/pages/home_page.dart';
import 'package:odin/providers/file_notifier.dart';
import 'package:odin/services/locator.dart';
Expand Down Expand Up @@ -43,8 +44,36 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Odin',
theme: ThemeData(primarySwatch: Colors.deepPurple),
title: 'Odin - Open Source easy file sharing for everyone.',
theme: ThemeData(primarySwatch: Colors.deepPurple).copyWith(
textTheme: TextTheme(
headline1: GoogleFonts.poppins(
fontSize: 93, fontWeight: FontWeight.w300, letterSpacing: -1.5),
headline2: GoogleFonts.poppins(
fontSize: 58, fontWeight: FontWeight.w300, letterSpacing: -0.5),
headline3:
GoogleFonts.poppins(fontSize: 46, fontWeight: FontWeight.w400),
headline4: GoogleFonts.poppins(
fontSize: 33, fontWeight: FontWeight.w400, letterSpacing: 0.25),
headline5:
GoogleFonts.poppins(fontSize: 23, fontWeight: FontWeight.w400),
headline6: GoogleFonts.poppins(
fontSize: 19, fontWeight: FontWeight.w500, letterSpacing: 0.15),
subtitle1: GoogleFonts.poppins(
fontSize: 15, fontWeight: FontWeight.w400, letterSpacing: 0.15),
subtitle2: GoogleFonts.poppins(
fontSize: 13, fontWeight: FontWeight.w500, letterSpacing: 0.1),
bodyText1: GoogleFonts.poppins(
fontSize: 15, fontWeight: FontWeight.w400, letterSpacing: 0.5),
bodyText2: GoogleFonts.poppins(
fontSize: 13, fontWeight: FontWeight.w400, letterSpacing: 0.25),
button: GoogleFonts.poppins(
fontSize: 13, fontWeight: FontWeight.w500, letterSpacing: 1.25),
caption: GoogleFonts.poppins(
fontSize: 12, fontWeight: FontWeight.w400, letterSpacing: 0.4),
overline: GoogleFonts.poppins(
fontSize: 10, fontWeight: FontWeight.w400, letterSpacing: 1.5),
)),
home: const HomePage(),
);
}
Expand Down
18 changes: 11 additions & 7 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:clipboard/clipboard.dart';
import 'package:desktop_drop/desktop_drop.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:odin/painters/done_icon_painter.dart';
import 'package:odin/painters/drop_icon_painter.dart';
import 'package:odin/painters/odin_logo_painter.dart';
Expand Down Expand Up @@ -181,9 +182,10 @@ class _HomePageState extends State<HomePage>
children: [
SelectableText(
_fileNotifier.fileLink.toString(),
style: TextStyle(
style: GoogleFonts.poppins(
fontSize: 12,
fontWeight: FontWeight.w300,
fontWeight: FontWeight.w200,
letterSpacing: 0.5,
color: Colors.white.withOpacity(0.6),
),
),
Expand All @@ -205,11 +207,13 @@ class _HomePageState extends State<HomePage>
),
),
Text(
"Files are saved in an anonymous GitHub Repo, and will be deleted after 15 hours.",
style: TextStyle(
fontSize: 10,
fontWeight: FontWeight.w600,
color: Colors.black.withOpacity(0.2)),
"Files are encrypted with AES-256 encryption and will be deleted after 15 hours.",
style: GoogleFonts.poppins(
fontSize: 10,
fontWeight: FontWeight.w500,
letterSpacing: -0.1,
color: Colors.black.withOpacity(0.2),
),
),
const Spacer(flex: 1),
],
Expand Down
7 changes: 7 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
graphs:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies:
sdk: flutter
flutter_dotenv: ^5.0.2
get_it: ^7.2.0
google_fonts: ^2.1.0
http: ^0.13.4
intl: ^0.17.0
json_annotation: ^4.3.0
Expand Down

0 comments on commit e3c2f6d

Please sign in to comment.