utils/payorc_sdk_fonts library
Constants
-
payorcSdkBundledCheckoutFontFamilies
→ const Set<
String> -
font_namevalues from checkout customization that have offline assets in this package. - payorcSdkCheckoutFontFallbackFamily → const String
Functions
-
payorcCheckoutDefaultTextStyle(
String fontName) → TextStyle -
Base style for DefaultTextStyle.merge so
Textwidgets that only set size/color still pick up the face. -
payorcMergeCheckoutFontTextTheme(
TextTheme base, String fontName) → TextTheme -
Merges checkout
font_nameintobasefor Material ThemeData.textTheme. -
payorcMergeHostFonts(
TextTheme base, {required String? bodyFontName, required String? titleFontName, required String? checkoutFontName}) → TextTheme -
Applies
bodyFontNameto body/label styles and optionallytitleFontNameto display/headline/title styles. Falls back tocheckoutFontNamewhen a host override is empty.