-
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.
Merge pull request #30 from joaojsrbr/dev
initial commit
- Loading branch information
Showing
8 changed files
with
114 additions
and
57 deletions.
There are no files selected for viewing
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,67 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class RootCor { | ||
ColorScheme lightColorScheme = const ColorScheme( | ||
brightness: Brightness.light, | ||
surfaceTint: Color(0xFF6750A4), | ||
onErrorContainer: Color(0xFF410E0B), | ||
onError: Color(0xFFFFFFFF), | ||
errorContainer: Color(0xFFF9DEDC), | ||
onTertiaryContainer: Color(0xFF31111D), | ||
onTertiary: Color(0xFFFFFFFF), | ||
tertiaryContainer: Color(0xFFFFD8E4), | ||
tertiary: Color(0xFF7D5260), | ||
shadow: Color(0xFF000000), | ||
error: Color(0xFFB3261E), | ||
outline: Color(0xFF79747E), | ||
onBackground: Color(0xFF1C1B1F), | ||
background: Color(0xFFFFFBFE), | ||
onInverseSurface: Color(0xFFF4EFF4), | ||
inverseSurface: Color(0xFF313033), | ||
onSurfaceVariant: Color(0xFF49454F), | ||
onSurface: Color(0xFF1C1B1F), | ||
surfaceVariant: Color(0xFFE7E0EC), | ||
surface: Color(0xFFFFFBFE), | ||
onSecondaryContainer: Color(0xFF1D192B), | ||
onSecondary: Color(0xFFFFFFFF), | ||
secondaryContainer: Color(0xFFE8DEF8), | ||
secondary: Color(0xFF625B71), | ||
inversePrimary: Color(0xFFD0BCFF), | ||
onPrimaryContainer: Color(0xFF21005D), | ||
onPrimary: Color(0xFFFFFFFF), | ||
primaryContainer: Color(0xFFEADDFF), | ||
primary: Color(0xFF6750A4), | ||
); | ||
|
||
ColorScheme darkColorScheme = const ColorScheme( | ||
brightness: Brightness.dark, | ||
surfaceTint: Color(0xFFD0BCFF), | ||
onErrorContainer: Color(0xFFF2B8B5), | ||
onError: Color(0xFF601410), | ||
errorContainer: Color(0xFF8C1D18), | ||
onTertiaryContainer: Color(0xFFFFD8E4), | ||
onTertiary: Color(0xFF492532), | ||
tertiaryContainer: Color(0xFF633B48), | ||
tertiary: Color(0xFFEFB8C8), | ||
shadow: Color(0xFF000000), | ||
error: Color(0xFFF2B8B5), | ||
outline: Color(0xFF938F99), | ||
onBackground: Color(0xFFE6E1E5), | ||
background: Color(0xFF1C1B1F), | ||
onInverseSurface: Color(0xFF313033), | ||
inverseSurface: Color(0xFFE6E1E5), | ||
onSurfaceVariant: Color(0xFFCAC4D0), | ||
onSurface: Color(0xFFE6E1E5), | ||
surfaceVariant: Color(0xFF49454F), | ||
surface: Color(0xFF1C1B1F), | ||
onSecondaryContainer: Color(0xFFE8DEF8), | ||
onSecondary: Color(0xFF332D41), | ||
secondaryContainer: Color(0xFF4A4458), | ||
secondary: Color(0xFFCCC2DC), | ||
inversePrimary: Color(0xFF6750A4), | ||
onPrimaryContainer: Color(0xFFEADDFF), | ||
onPrimary: Color(0xFF381E72), | ||
primaryContainer: Color(0xFF4F378B), | ||
primary: Color(0xFFD0BCFF), | ||
); | ||
} |
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
22 changes: 21 additions & 1 deletion
22
lib/app/modules/details/controllers/details_controller.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:get/get.dart'; | ||
|
||
class DetailsController extends GetxController {} | ||
class DetailsController extends GetxController | ||
with GetTickerProviderStateMixin { | ||
late TabController tabController; | ||
|
||
@override | ||
void onInit() { | ||
tabController = TabController( | ||
initialIndex: 0, | ||
length: 5, | ||
vsync: this, | ||
); | ||
super.onInit(); | ||
} | ||
|
||
@override | ||
void onClose() { | ||
tabController.dispose(); | ||
super.onClose(); | ||
} | ||
} |
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
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
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