2022-08-26 08:11:35 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:google_fonts/google_fonts.dart';
|
2023-05-09 21:57:40 +00:00
|
|
|
import 'package:stackwallet/themes/stack_colors.dart';
|
2022-08-26 08:11:35 +00:00
|
|
|
|
|
|
|
class STextStyles {
|
2022-09-26 17:34:41 +00:00
|
|
|
static StackColors _theme(BuildContext context) =>
|
|
|
|
Theme.of(context).extension<StackColors>()!;
|
|
|
|
|
2022-12-21 19:46:50 +00:00
|
|
|
static TextStyle sectionLabelMedium12(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
|
|
|
case "forest":
|
2023-01-20 21:32:49 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark3,
|
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 12,
|
2023-01-20 21:32:49 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-24 14:10:52 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark3,
|
|
|
|
fontWeight: FontWeight.w500,
|
2023-02-01 21:02:41 +00:00
|
|
|
fontSize: 14,
|
2023-01-24 14:10:52 +00:00
|
|
|
);
|
2022-12-21 19:46:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-26 17:34:41 +00:00
|
|
|
static TextStyle pageTitleH1(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 20,
|
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle pageTitleH2(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 18,
|
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle navBarTitle(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 16,
|
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle titleBold12(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-11-18 03:04:02 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 16,
|
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle subtitle(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w400,
|
2022-09-26 17:34:41 +00:00
|
|
|
fontSize: 16,
|
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle subtitle500(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-05 20:34:56 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2023-01-05 20:34:56 +00:00
|
|
|
fontSize: 16,
|
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle subtitle600(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-23 17:58:06 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 16,
|
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle button(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).buttonTextPrimary,
|
|
|
|
fontWeight: FontWeight.w500,
|
2023-02-09 21:37:25 +00:00
|
|
|
fontSize: 16,
|
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-17 14:53:31 +00:00
|
|
|
static TextStyle largeMedium14(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2022-09-26 17:34:41 +00:00
|
|
|
fontSize: 16,
|
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle smallMed14(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-11-18 03:04:02 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textDark3,
|
|
|
|
fontWeight: FontWeight.w500,
|
2022-11-18 03:04:02 +00:00
|
|
|
fontSize: 16,
|
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle smallMed12(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textDark3,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 14,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle label(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-05 20:34:56 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textSubtitle1,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 12,
|
2023-01-05 20:34:56 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle labelExtraExtraSmall(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-23 17:58:06 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textFieldActiveSearchIconRight,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 14,
|
|
|
|
height: 14 / 14,
|
2023-01-23 17:58:06 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle label700(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textSubtitle1,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontSize: 12,
|
2023-02-09 21:37:25 +00:00
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-17 14:53:31 +00:00
|
|
|
static TextStyle itemSubtitle(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).infoItemLabel,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 14,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle itemSubtitle12(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-11-18 03:04:02 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 14,
|
2022-11-18 03:04:02 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle fieldLabel(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textSubtitle2,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 14,
|
|
|
|
height: 1.5,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle field(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-05 20:34:56 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 14,
|
|
|
|
height: 1.5,
|
2023-01-05 20:34:56 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle baseXS(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-23 17:58:06 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w400,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 14,
|
2023-01-23 17:58:06 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle link(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).accentColorRed,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 14,
|
2023-02-09 21:37:25 +00:00
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-17 14:53:31 +00:00
|
|
|
static TextStyle link2(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
|
|
|
case "oled_black":
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).checkboxBGChecked,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 14,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-11-18 03:04:02 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).infoItemIcons,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 14,
|
2022-11-18 03:04:02 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle richLink(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).accentColorBlue,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 12,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle w600_12(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-05 20:34:56 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 12,
|
2023-01-05 20:34:56 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle w600_14(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-23 17:58:06 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 14,
|
2023-01-23 17:58:06 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle w500_14(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 14,
|
2023-02-09 21:37:25 +00:00
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-17 14:53:31 +00:00
|
|
|
static TextStyle w500_12(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 12,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle w500_10(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-11-18 03:04:02 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 10,
|
2022-11-18 03:04:02 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle w600_20(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 20,
|
|
|
|
height: 30 / 20,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle syncPercent(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-05 20:34:56 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 12,
|
2023-01-05 20:34:56 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle buttonSmall(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
|
|
|
case "fruit_sorbet":
|
2023-01-23 17:58:06 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).bottomNavIconIcon,
|
2023-01-23 17:58:06 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 12,
|
2023-01-23 17:58:06 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 12,
|
2023-02-09 21:37:25 +00:00
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-17 14:53:31 +00:00
|
|
|
static TextStyle errorSmall(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textError,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 10,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle infoSmall(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-11-18 03:04:02 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textSubtitle1,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 10,
|
2022-11-18 03:04:02 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Desktop
|
|
|
|
|
|
|
|
static TextStyle desktopH1(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w600,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 40,
|
|
|
|
height: 40 / 40,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopH2(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-05 20:34:56 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w600,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 32,
|
|
|
|
height: 32 / 32,
|
2023-01-05 20:34:56 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopH3(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-23 17:58:06 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w600,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 24,
|
|
|
|
height: 24 / 24,
|
2023-01-23 17:58:06 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle w500_24(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 24,
|
|
|
|
height: 24 / 24,
|
2023-02-09 21:37:25 +00:00
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-17 14:53:31 +00:00
|
|
|
static TextStyle desktopTextMedium(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textDark,
|
2022-09-26 17:34:41 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 20,
|
|
|
|
height: 30 / 20,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopTextMediumRegular(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-11-18 03:04:02 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 20,
|
|
|
|
height: 30 / 20,
|
2022-11-18 03:04:02 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopSubtitleH2(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 20,
|
|
|
|
height: 28 / 20,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopSubtitleH1(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-05 20:34:56 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 24,
|
|
|
|
height: 33 / 24,
|
2023-01-05 20:34:56 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopButtonEnabled(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-23 17:58:06 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).buttonTextPrimary,
|
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 20,
|
|
|
|
height: 26 / 20,
|
2023-01-23 17:58:06 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopButtonDisabled(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).buttonTextPrimaryDisabled,
|
2023-02-09 21:37:25 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 20,
|
|
|
|
height: 26 / 20,
|
2023-02-09 21:37:25 +00:00
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-17 14:53:31 +00:00
|
|
|
static TextStyle desktopButtonSecondaryEnabled(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).buttonTextSecondary,
|
2022-09-26 17:34:41 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 20,
|
|
|
|
height: 26 / 20,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopButtonSecondaryDisabled(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-11-18 03:04:02 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).buttonTextSecondaryDisabled,
|
2022-11-18 03:04:02 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 20,
|
|
|
|
height: 26 / 20,
|
2022-11-18 03:04:02 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopTextSmall(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
|
|
|
case "dark":
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).buttonTextPrimaryDisabled,
|
2023-01-23 17:58:06 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 18,
|
|
|
|
height: 27 / 18,
|
2023-01-23 17:58:06 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
|
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 18,
|
|
|
|
height: 27 / 18,
|
2023-02-09 21:37:25 +00:00
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-17 14:53:31 +00:00
|
|
|
static TextStyle desktopTextSmallBold(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
|
|
|
case "dark":
|
|
|
|
case "oled_black":
|
2023-01-05 20:34:56 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).buttonTextPrimaryDisabled,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontSize: 18,
|
|
|
|
height: 27 / 18,
|
2023-02-09 21:37:25 +00:00
|
|
|
);
|
2022-09-29 21:55:10 +00:00
|
|
|
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontSize: 18,
|
|
|
|
height: 27 / 18,
|
2023-02-09 21:37:25 +00:00
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
2023-03-17 14:53:31 +00:00
|
|
|
|
|
|
|
static TextStyle desktopTextExtraSmall(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).buttonTextPrimaryDisabled,
|
2023-02-09 21:37:25 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 16,
|
2023-03-17 14:53:31 +00:00
|
|
|
height: 24 / 16,
|
2023-02-09 21:37:25 +00:00
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-17 14:53:31 +00:00
|
|
|
static TextStyle desktopTextExtraExtraSmall(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textSubtitle1,
|
2022-09-26 17:34:41 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 14,
|
|
|
|
height: 21 / 14,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopTextExtraExtraSmall600(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-11-18 03:04:02 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 14,
|
|
|
|
height: 21 / 14,
|
2022-11-18 03:04:02 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopButtonSmallSecondaryEnabled(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2022-09-26 17:34:41 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).buttonTextSecondary,
|
2022-09-26 17:34:41 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 16,
|
2023-03-17 14:53:31 +00:00
|
|
|
height: 24 / 16,
|
2022-09-26 17:34:41 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopTextFieldLabel(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-05 20:34:56 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textSubtitle2,
|
2023-01-05 20:34:56 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
2023-03-17 14:53:31 +00:00
|
|
|
fontSize: 20,
|
|
|
|
height: 30 / 20,
|
2023-01-05 20:34:56 +00:00
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopMenuItem(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-01-23 17:58:06 +00:00
|
|
|
return GoogleFonts.inter(
|
2023-03-17 14:53:31 +00:00
|
|
|
color: _theme(context).textDark.withOpacity(0.8),
|
2023-01-23 17:58:06 +00:00
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 16,
|
|
|
|
height: 20.8 / 16,
|
|
|
|
);
|
2023-03-17 14:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle desktopMenuItemSelected(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 16,
|
|
|
|
height: 20.8 / 16,
|
|
|
|
);
|
2022-10-07 00:23:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle settingsMenuItem(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark.withOpacity(0.5),
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 16,
|
|
|
|
height: 20.8 / 16,
|
|
|
|
);
|
2022-10-07 00:23:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle settingsMenuItemSelected(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 16,
|
|
|
|
height: 20.8 / 16,
|
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle stepIndicator(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.roboto(
|
|
|
|
color: _theme(context).textDark,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 8,
|
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle numberDefault(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.roboto(
|
|
|
|
color: _theme(context).numberTextDefault,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 26,
|
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle datePicker400(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
letterSpacing: 0.5,
|
|
|
|
color: _theme(context).accentColorDark,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 12,
|
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static TextStyle datePicker600(BuildContext context) {
|
2023-05-09 16:53:15 +00:00
|
|
|
switch (_theme(context).themeId) {
|
2023-03-17 14:53:31 +00:00
|
|
|
default:
|
2023-02-09 21:37:25 +00:00
|
|
|
return GoogleFonts.inter(
|
|
|
|
letterSpacing: 0.5,
|
|
|
|
color: _theme(context).accentColorDark,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 16,
|
|
|
|
);
|
2022-09-26 17:34:41 +00:00
|
|
|
}
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
}
|