Skip to content

Commit

Permalink
Fonts & Colors
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasalemayehu committed May 5, 2022
1 parent a1a4eeb commit 5e3dfd0
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 9 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion flutter-user-client/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:injectable/injectable.dart';

Future main() async {
await dotenv.load();
await dotenv.load(fileName: ".env");
configureInjection(Environment.prod);
runApp(const AppWidget());
}
21 changes: 20 additions & 1 deletion flutter-user-client/lib/presentation/core/app_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,26 @@ class AppWidget extends StatelessWidget {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
// Background Colors
colorScheme: ColorScheme.fromSwatch(
primarySwatch: Colors.blue,
)
.copyWith(
secondary: Colors.amber,
)
.copyWith(
tertiary: Colors.black,
),

// text styles
textTheme: const TextTheme(
headline1: TextStyle(
fontSize: 72.0,
fontWeight: FontWeight.bold,
color: Colors.pink,
fontFamily: "Architect",
),
),
),
initialRoute: "/",
routes: _appRouter.allRoutes,
Expand Down
3 changes: 0 additions & 3 deletions flutter-user-client/lib/presentation/core/main_tab_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ class MainTabView extends StatelessWidget {
),
),
appBar: AppBar(
iconTheme: const IconThemeData(color: Colors.white),
backgroundColor: (Colors.blue),
elevation: 8.0,
bottom: const TabBar(
indicatorColor: Colors.white,
tabs: [
// My Team
Tab(
Expand Down
11 changes: 7 additions & 4 deletions flutter-user-client/lib/presentation/fixtures/fixtures_view.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import 'package:flutter/material.dart';

class FixtureView extends StatelessWidget {
const FixtureView({ Key? key }) : super(key: key);
const FixtureView({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return const Center(
child: Text("Fixtures"),
return Center(
child: Text(
"Fixtures",
style: Theme.of(context).textTheme.headline1,
),
);
}
}
}
4 changes: 4 additions & 0 deletions flutter-user-client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ dev_dependencies:
flutter:
assets:
- .env
fonts:
- family: Architect
fonts:
- asset: fonts/ArchitectsDaughter-Regular.ttf
uses-material-design: true

0 comments on commit 5e3dfd0

Please sign in to comment.