Removed type
This commit is contained in:
@@ -401,7 +401,6 @@ enum TextThemeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class TextTheme {
|
class TextTheme {
|
||||||
final TextThemeType type;
|
|
||||||
final TextStyle title;
|
final TextStyle title;
|
||||||
final TextStyle headlineBold;
|
final TextStyle headlineBold;
|
||||||
final TextStyle headline;
|
final TextStyle headline;
|
||||||
@@ -412,7 +411,6 @@ class TextTheme {
|
|||||||
final TextStyle captionBold;
|
final TextStyle captionBold;
|
||||||
|
|
||||||
TextTheme.light({
|
TextTheme.light({
|
||||||
this.type = TextThemeType.light,
|
|
||||||
this.title = const TextStyle(
|
this.title = const TextStyle(
|
||||||
fontSize: 22,
|
fontSize: 22,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
@@ -447,7 +445,6 @@ class TextTheme {
|
|||||||
});
|
});
|
||||||
|
|
||||||
TextTheme.dark({
|
TextTheme.dark({
|
||||||
this.type = TextThemeType.dark,
|
|
||||||
this.title = const TextStyle(
|
this.title = const TextStyle(
|
||||||
fontSize: 22,
|
fontSize: 22,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
@@ -490,6 +487,7 @@ class TextTheme {
|
|||||||
});
|
});
|
||||||
|
|
||||||
TextTheme copyWith({
|
TextTheme copyWith({
|
||||||
|
TextThemeType type = TextThemeType.light,
|
||||||
TextStyle body,
|
TextStyle body,
|
||||||
TextStyle title,
|
TextStyle title,
|
||||||
TextStyle headlineBold,
|
TextStyle headlineBold,
|
||||||
|
|||||||
Reference in New Issue
Block a user