Skip to content

Commit

Permalink
colors
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo committed Jul 20, 2023
1 parent 453f0a9 commit 1e89569
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lib/app/view/app.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:nes_ui/nes_ui.dart';
import 'package:pomodoro_adventures/game/game.dart';
import 'package:pomodoro_adventures/l10n/l10n.dart';
Expand All @@ -23,7 +24,22 @@ class App extends StatelessWidget {
RepositoryProvider.value(value: cycleRepository),
],
child: MaterialApp(
theme: flutterNesTheme(),
theme: flutterNesTheme(
nesIconTheme: const NesIconTheme(
primary: Color(0xFF794100),
secondary: Color(0xFFffa200),
),
nesContainerTheme: NesContainerTheme(
backgroundColor: const Color(0xFFffdba2),
borderColor: const Color(0xffc37100),
labelTextStyle: GoogleFonts.pressStart2p(
color: Colors.black,
fontSize: 14,
),
),
).copyWith(
scaffoldBackgroundColor: const Color(0xFF305182),
),
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
home: const GamePage(),
Expand Down
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ dependencies:
flutter_bloc: ^8.1.3
flutter_localizations:
sdk: flutter
google_fonts: ">=4.0.3 <6.0.0"
intl: ^0.18.0
mini_sprite: ^0.1.0
nes_ui:
git:
url: https://github.com/erickzanardo/nes_ui.git
ref: feat/nes-container-theme
phased: ^0.0.3

dev_dependencies:
Expand Down

0 comments on commit 1e89569

Please sign in to comment.