Onde está o theme do curso fullstack do youtube? #123
Unanswered
William01Dantas
asked this question in
Perguntas e Respostas
Replies: 1 comment
-
Segue: themes.dart import 'package:flutter/material.dart';
part 'color_schemes.g.dart';
ThemeData get lightTheme => ThemeData(
useMaterial3: true,
colorScheme: _lightColorScheme,
appBarTheme: AppBarTheme(
centerTitle: true,
backgroundColor: _lightColorScheme.primaryContainer,
),
floatingActionButtonTheme: FloatingActionButtonThemeData(
backgroundColor: _lightColorScheme.primary,
foregroundColor: _lightColorScheme.onPrimary,
),
segmentedButtonTheme: _segmentedButtonTheme,
);
ThemeData get dartTheme => ThemeData(
useMaterial3: true,
colorScheme: _darkColorScheme,
appBarTheme: AppBarTheme(
centerTitle: true,
backgroundColor: _darkColorScheme.primaryContainer,
),
segmentedButtonTheme: _segmentedButtonTheme,
);
SegmentedButtonThemeData get _segmentedButtonTheme => SegmentedButtonThemeData(
style: ButtonStyle(
textStyle: MaterialStateProperty.resolveWith<TextStyle>((states) {
if (states.contains(MaterialState.selected)) {
return const TextStyle(
fontSize: 9,
);
}
return const TextStyle(
fontSize: 12,
);
}),
),
);
color_schemes.g.dart part of 'themes.dart';
const _lightColorScheme = ColorScheme(
brightness: Brightness.light,
primary: Color(0xFF6750A4),
onPrimary: Color(0xFFFFFFFF),
primaryContainer: Color(0xFFE9DDFF),
onPrimaryContainer: Color(0xFF22005D),
secondary: Color(0xFF625B71),
onSecondary: Color(0xFFFFFFFF),
secondaryContainer: Color(0xFFE8DEF8),
onSecondaryContainer: Color(0xFF1E192B),
tertiary: Color(0xFF1A6C31),
onTertiary: Color(0xFFFFFFFF),
tertiaryContainer: Color(0xFFA3F5AA),
onTertiaryContainer: Color(0xFF002108),
error: Color(0xFFBA1A1A),
errorContainer: Color(0xFFFFDAD6),
onError: Color(0xFFFFFFFF),
onErrorContainer: Color(0xFF410002),
background: Color(0xFFFFFBFF),
onBackground: Color(0xFF1C1B1E),
surface: Color(0xFFFFFBFF),
onSurface: Color(0xFF1C1B1E),
surfaceVariant: Color(0xFFE7E0EB),
onSurfaceVariant: Color(0xFF49454E),
outline: Color(0xFF7A757F),
onInverseSurface: Color(0xFFF4EFF4),
inverseSurface: Color(0xFF313033),
inversePrimary: Color(0xFFCFBCFF),
shadow: Color(0xFF000000),
surfaceTint: Color(0xFF6750A4),
outlineVariant: Color(0xFFCAC4CF),
scrim: Color(0xFF000000),
);
const _darkColorScheme = ColorScheme(
brightness: Brightness.dark,
primary: Color(0xFFCFBCFF),
onPrimary: Color(0xFF381E72),
primaryContainer: Color(0xFF4F378A),
onPrimaryContainer: Color(0xFFE9DDFF),
secondary: Color(0xFFCBC2DB),
onSecondary: Color(0xFF332D41),
secondaryContainer: Color(0xFF4A4458),
onSecondaryContainer: Color(0xFFE8DEF8),
tertiary: Color(0xFF88D990),
onTertiary: Color(0xFF003913),
tertiaryContainer: Color(0xFF00531F),
onTertiaryContainer: Color(0xFFA3F5AA),
error: Color(0xFFFFB4AB),
errorContainer: Color(0xFF93000A),
onError: Color(0xFF690005),
onErrorContainer: Color(0xFFFFDAD6),
background: Color(0xFF1C1B1E),
onBackground: Color(0xFFE6E1E6),
surface: Color(0xFF1C1B1E),
onSurface: Color(0xFFE6E1E6),
surfaceVariant: Color(0xFF49454E),
onSurfaceVariant: Color(0xFFCAC4CF),
outline: Color(0xFF948F99),
onInverseSurface: Color(0xFF1C1B1E),
inverseSurface: Color(0xFFE6E1E6),
inversePrimary: Color(0xFF6750A4),
shadow: Color(0xFF000000),
surfaceTint: Color(0xFFCFBCFF),
outlineVariant: Color(0xFF49454E),
scrim: Color(0xFF000000),
); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Fala galera alguém pode enviar themes do curso de fullstack do youtube?
Beta Was this translation helpful? Give feedback.
All reactions