-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support do colors and design structure
- Loading branch information
1 parent
6e94e2c
commit 69cd443
Showing
9 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,41 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
abstract class PokedexThemeData { | ||
static ThemeData get pokedexLightTheme => ThemeData( | ||
useMaterial3: true, | ||
fontFamily: 'Poppins', | ||
colorScheme: _lightColorScheme, | ||
); | ||
} | ||
|
||
const _lightColorScheme = ColorScheme( | ||
brightness: Brightness.light, | ||
primary: Color(0xFFEA5D60), | ||
onPrimary: Color(0xFFFFFFFF), | ||
primaryContainer: Color(0xFFEADDFF), | ||
onPrimaryContainer: Color(0xFF21005D), | ||
secondary: Color(0xFF625B71), | ||
onSecondary: Color(0xFFFFFFFF), | ||
secondaryContainer: Color(0xFFE8DEF8), | ||
onSecondaryContainer: Color(0xFF1D192B), | ||
tertiary: Color(0xFF7D5260), | ||
onTertiary: Color(0xFFFFFFFF), | ||
tertiaryContainer: Color(0xFFFFD8E4), | ||
onTertiaryContainer: Color(0xFF31111D), | ||
error: Color(0xFFB3261E), | ||
onError: Color(0xFFFFFFFF), | ||
errorContainer: Color(0xFFF9DEDC), | ||
onErrorContainer: Color(0xFF410E0B), | ||
outline: Color(0xFF79747E), | ||
surface: Color(0xFFFFFBFE), | ||
onSurface: Color(0xFF1C1B1F), | ||
surfaceContainerHighest: Color(0xFFE7E0EC), | ||
onSurfaceVariant: Color(0xFF49454F), | ||
inverseSurface: Color(0xFF313033), | ||
onInverseSurface: Color(0xFFF4EFF4), | ||
inversePrimary: Color(0xFFD0BCFF), | ||
shadow: Color(0xFF000000), | ||
surfaceTint: Color(0xFF6750A4), | ||
outlineVariant: Color(0xFFCAC4D0), | ||
scrim: Color(0xFF000000), | ||
); |
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,29 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
enum PokedexTypeColor { | ||
bug(Color(0xFF8CB230), Color(0XFF8BD674)), | ||
dark(Color(0xFF58575F), Color(0xFF6F6E78)), | ||
dragon(Color(0xFF0F6AC0), Color(0xFF7383B9)), | ||
electric(Color(0xFFEED535), Color(0xFFF2CB55)), | ||
fairy(Color(0xFFED6EC7), Color(0xFFEBA8C3)), | ||
fighting(Color(0xFFD04164), Color(0xFFEB4971)), | ||
fire(Color(0xFFFD7D24), Color(0xFFFFA756)), | ||
flying(Color(0xFF748FC9), Color(0xFF83A2E3)), | ||
ghost(Color(0xFF556AAE), Color(0xFF8571BE)), | ||
grass(Color(0xFF62B957), Color(0xFF8BBE8A)), | ||
ground(Color(0xFFDD7748), Color(0xFFF78551)), | ||
ice(Color(0xFF61CEC0), Color(0xFF91D8DF)), | ||
normal(Color(0xFF9DA0AA), Color(0xFFB5B9C4)), | ||
poison(Color(0xFFA552CC), Color(0xFF9F6E97)), | ||
psychic(Color(0xFFEA5D60), Color(0xFFFF6568)), | ||
rock(Color(0xFFBAAB82), Color(0xFFD4C294)), | ||
steel(Color(0xFF417D9A), Color(0xFF4C91B2)), | ||
water(Color(0xFF4A90DA), Color(0xFF58ABF6)), | ||
shadow(Color(0xFF5116A4), Color(0xFF855BBF)), | ||
unknown(Color(0xFF333D33), Color(0xFF707770)); | ||
|
||
const PokedexTypeColor(this.primary, this.secundary); | ||
|
||
final Color primary; | ||
final Color secundary; | ||
} |
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,10 @@ | ||
abstract class Spacing { | ||
const Spacing._(); | ||
|
||
static const double kXS = 4.0; | ||
static const double kS = 8.0; | ||
static const double kM = 16.0; | ||
static const double kL = 24.0; | ||
static const double kXL = 32.0; | ||
static const double kXXL = 48.0; | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
pokedex/lib/features/pokemon_list/presentation/widgets/pokemon_card.dart
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