-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding assets - fonts and images - and updating theme of the app
- Loading branch information
1 parent
e71b82f
commit f742220
Showing
16 changed files
with
129 additions
and
10 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/// Flutter icons FilmesAppIcons | ||
/// Copyright (C) 2021 by original authors @ fluttericon.com, fontello.com | ||
/// This font was generated by FlutterIcon.com, which is derived from Fontello. | ||
/// | ||
/// To use this font, place it in your fonts/ directory and include the | ||
/// following in your pubspec.yaml | ||
/// | ||
/// flutter: | ||
/// fonts: | ||
/// - family: FilmesAppIcons | ||
/// fonts: | ||
/// - asset: fonts/FilmesAppIcons.ttf | ||
/// | ||
/// | ||
/// * Font Awesome 4, Copyright (C) 2016 by Dave Gandy | ||
/// Author: Dave Gandy | ||
/// License: SIL () | ||
/// Homepage: http://fortawesome.github.com/Font-Awesome/ | ||
/// | ||
import 'package:flutter/widgets.dart'; | ||
|
||
class FilmesAppIcons { | ||
FilmesAppIcons._(); | ||
|
||
static const _kFontFam = 'FilmesAppIcons'; | ||
static const String? _kFontPkg = null; | ||
|
||
static const IconData heart = | ||
IconData(0xe800, fontFamily: _kFontFam, fontPackage: _kFontPkg); | ||
static const IconData heartEmpty = | ||
IconData(0xe801, fontFamily: _kFontFam, fontPackage: _kFontPkg); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class FilmesAppUiConfig { | ||
FilmesAppUiConfig._(); | ||
|
||
static String get title => 'Filmes App'; | ||
|
||
static ThemeData get theme => ThemeData( | ||
scaffoldBackgroundColor: Colors.white, | ||
fontFamily: 'Metropolis', | ||
appBarTheme: const AppBarTheme( | ||
backgroundColor:Colors.white, | ||
iconTheme: IconThemeData(color: Colors.black), | ||
titleTextStyle: TextStyle( | ||
color: Color(0xff222222), | ||
fontSize: 18, | ||
fontWeight: FontWeight.w500, | ||
), | ||
), | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
extension ThemeExtension on BuildContext { | ||
Color get themeRed => const Color(0xffea4335); | ||
Color get themeOrange => const Color(0xffffba49); | ||
Color get themeGrey => const Color(0xff9b9b9b); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class FavoritesPage extends StatelessWidget { | ||
const FavoritesPage({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text('Favorites'), | ||
), | ||
body: Container(), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'package:app_filmes/application/ui/filmes_app_icons_icons.dart'; | ||
import 'package:app_filmes/application/ui/theme_extension.dart'; | ||
|
||
class HomePage extends StatelessWidget { | ||
const HomePage({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text('HomePage'), | ||
bottomNavigationBar: BottomNavigationBar( | ||
selectedItemColor: context.themeRed, | ||
unselectedItemColor: context.themeGrey, | ||
items: const [ | ||
BottomNavigationBarItem( | ||
icon: Icon(Icons.movie), | ||
label: 'Filmes', | ||
), | ||
BottomNavigationBarItem( | ||
icon: Icon(FilmesAppIcons.heartEmpty), | ||
label: 'Favoritos', | ||
), | ||
BottomNavigationBarItem( | ||
icon: Icon(Icons.logout_outlined), | ||
label: 'Sair', | ||
), | ||
], | ||
), | ||
body: Container(), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class MoviesPageDart extends StatelessWidget { | ||
|
||
const MoviesPageDart({ Key? key }) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text('Movies'), | ||
), | ||
body: Container(), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters