empathetech_flutter_ui library

EFUI makes building accessible and user customizable UIs EZ. So anyone can enjoy your great idea!

Enums

Hand
Enumerator for tracking which (horizontal) side of the screen touch points should be on
SliderSettingType
Enumerator for selecting the type of setting that is being updated This will determine the preview Widgets

Extensions

SettingIcon
Enumerator extension for getting the proper button Icon for EzSliderSetting.type

Constants

allColors → const Set<String>
allKeys → const Map<String, Type>
andadaPro → const String
anton → const String
archivo → const String
bioRhyme → const String
blackHex → const int
0xFF000000
buttonSpacingKey → const String
cormorant → const String
darkBackgroundKey → const String
darkColorKeys → const Map<String, Type>
darkColors → const List<String>
Ordered List for populating color setting screen(s)
darkColorSchemeImageKey → const String
darkErrorContainerKey → const String
darkErrorKey → const String
darkImageKeys → const Map<String, Type>
darkInversePrimaryKey → const String
darkInverseSurfaceKey → const String
darkOnBackgroundKey → const String
darkOnErrorContainerKey → const String
darkOnErrorKey → const String
darkOnInverseSurfaceKey → const String
darkOnPrimaryContainerKey → const String
darkOnPrimaryKey → const String
darkOnSecondaryContainerKey → const String
darkOnSecondaryKey → const String
darkOnSurfaceKey → const String
darkOnSurfaceVariantKey → const String
darkOnTertiaryContainerKey → const String
darkOnTertiaryKey → const String
darkOutlineKey → const String
darkOutlineVariantKey → const String
darkPageImageKey → const String
darkPrimaryContainerKey → const String
darkPrimaryKey → const String
darkScrimKey → const String
darkSecondaryContainerKey → const String
darkSecondaryKey → const String
darkShadowKey → const String
darkSurfaceKey → const String
darkSurfaceTintKey → const String
darkSurfaceVariantKey → const String
darkTertiaryContainerKey → const String
darkTertiaryKey → const String
efuiL → const String
Long == Empathetech Flutter UI
efuiLFix → const String
Empathetic Flutter UI
efuiS → const String
Short == EFUI
EmpathetechAdmin → const String
If you need two hands admin@empathetech.net
EmpathetechCashApp → const String
If you want to show some love https://cash.app/\$empathetech
EmpathetechCoffee → const String
If you want to show some love https://www.buymeacoffee.com/empathetech
EmpathetechCommunity → const String
If you want to lend a hand community@empathetech.net
empathetechConfig → const Map<String, dynamic>
Empathetech's default configuration for EzConfig
EmpathetechFoldingTeam → const String
One of us, one of us, one of us! https://stats.foldingathome.org/team/1063265
EmpathetechGitHub → const String
Where the magic happens https://github.com/Empathetech-LLC
EmpathetechKofi → const String
If you want to show some love https://ko-fi.com/empathetech
EmpathetechLinkedIn → const String
If you want to get in touch https://linkedin.com/company/empathetech-llc
EmpathetechMastodon → const String
If you want to get in touch https://mastodon.social/@empathetech
EmpathetechNewsletter → const String
If you want to stay informed http://eepurl.com/iHe_I2
EmpathetechPatreon → const String
If you want to show some love https://patreon.com/empathetech
EmpathetechPayPal → const String
If you want to show some love https://www.paypal.com/donate/?hosted_button_id=NGEL6AB5A6KNL
EmpathetechSupport → const String
If you need a hand support@empathetech.net
EmpathetechVenmo → const String
If you want to show some love https://venmo.com/empathetech
EmpathEucalyptusHex → const int
0xFF20DAA5
EmpathGoldenrodHex → const int
0xFFDAA520
EmpathPurpleHex → const int
0xFFA520DA
encodeSans → const String
epilogue → const String
fontFamilyKey → const String
globalKeys → const Map<String, Type>
hahmlet → const String
homeRoute → const String
inter → const String
isLightThemeKey → const String
isRightHandKey → const String
jetBrainsMono → const String
lato → const String
lightBackgroundKey → const String
lightColorKeys → const Map<String, Type>
lightColors → const List<String>
Ordered List for populating color setting screen(s)
lightColorSchemeImageKey → const String
lightErrorContainerKey → const String
lightErrorKey → const String
lightImageKeys → const Map<String, Type>
lightInversePrimaryKey → const String
lightInverseSurfaceKey → const String
lightOnBackgroundKey → const String
lightOnErrorContainerKey → const String
lightOnErrorKey → const String
lightOnInverseSurfaceKey → const String
lightOnPrimaryContainerKey → const String
lightOnPrimaryKey → const String
lightOnSecondaryContainerKey → const String
lightOnSecondaryKey → const String
lightOnSurfaceKey → const String
lightOnSurfaceVariantKey → const String
lightOnTertiaryContainerKey → const String
lightOnTertiaryKey → const String
lightOutlineKey → const String
lightOutlineVariantKey → const String
lightPageImageKey → const String
lightPrimaryContainerKey → const String
lightPrimaryKey → const String
lightScrimKey → const String
lightSecondaryContainerKey → const String
lightSecondaryKey → const String
lightShadowKey → const String
lightSurfaceKey → const String
lightSurfaceTintKey → const String
lightSurfaceVariantKey → const String
lightTertiaryContainerKey → const String
lightTertiaryKey → const String
localeKey → const String
lora → const String
manrope → const String
marginKey → const String
materialColorRoles → const String
https://m3.material.io/styles/color/roles
noImageValue → const String
Allows for app images whose default is an asset to be "null"
offBlackHex → const int
0xFF191919
offWhiteHex → const int
0xFFF5F5F5
oldStandard → const String
paddingKey → const String
playfairDisplay → const String
raleway → const String
roboto → const String
sora → const String
spectral → const String
styleKeys → const Map<String, Type>
textColorPrefix → const String
textSpacingKey → const String
transparentHex → const int
0xFF000000
understandingLayout → const String
https://m3.material.io/foundations/layout/understanding-layout/spacing
userColorsKey → const String
whiteHex → const int
0xFFFFFFFF
workSans → const String

Properties

googleStyles Map<String, TextStyle>
All the GoogleFonts currently supported
final

Functions

buildBody({Color? color}) TextStyle
Builds a TextStyle w/ TextStyle.fontFamily from fontFamilyKey TextStyle.fontSize of 16 and color
buildDisplay({Color? color}) TextStyle
Builds a TextStyle w/ TextStyle.fontFamily from fontFamilyKey TextStyle.fontSize of 57 and color
buildHeadline({Color? color}) TextStyle
Builds a TextStyle w/ TextStyle.fontFamily from fontFamilyKey TextStyle.fontSize of 32 and color
buildLabel({Color? color}) TextStyle
Builds a TextStyle w/ TextStyle.fontFamily from fontFamilyKey TextStyle.fontSize of 14 and color
buildTitle({Color? color}) TextStyle
Builds a TextStyle w/ TextStyle.fontFamily from fontFamilyKey TextStyle.fontSize of 22 and color
changeImage({required BuildContext context, required String prefsPath, required ImageSource source}) Future<String?>
Overwrite the Image stored in prefsPath from source
closeKeyboard(BuildContext context) → void
More readable than FocusScope.of(context).unfocus();
doNothing() → void
Do you have a void Function as a parameter that you want to be optional? Then do nothing!
ezColorPicker({required BuildContext context, String? title, required Color startColor, required void onColorChange(Color chosenColor), String? confirmMsg, required void onConfirm(), String? denyMsg, required void onDeny()}) Future
Wrap a ColorPicker in an EzAlertDialog
ezColorScheme(Brightness brightness) ColorScheme
Generate a ColorScheme based on values present in EzConfig.prefs
ezCupertinoActions({required BuildContext context, required void onConfirm(), required void onDeny(), String? confirmMsg, String? denyMsg, bool confirmIsDefault = false, bool denyIsDefault = false, bool confirmIsDestructive = false, bool denyIsDestructive = false}) List<CupertinoDialogAction>
Pairs with EzAlertDialog Quickly creates CupertinoDialogActions All required parameters are identical to ezMaterialActions
ezMaterialActions({required BuildContext context, required void onConfirm(), required void onDeny(), String? confirmMsg, String? denyMsg}) List<TextButton>
Pairs with EzAlertDialog Quickly creates Material 'action' buttons for the dialog All required parameters are identical to ezCupertinoActions
ezTextTheme() TextTheme
Creates a "large" TextTheme with sizes from... https://m3.material.io/styles/typography/type-scale-tokens
ezThemeData(Brightness brightness) ThemeData
Creates a ThemeData with a ColorScheme generated via ezColorScheme Also has some tweaks to the base Material ThemeData, such as... margin, padding, TextStyles, IconData
getBody(BuildContext context) TextStyle?
Returns the TextTheme.bodyLarge of the current context
getColorName(BuildContext context, String key) String
Get the human readable name of a keys color
getDisplay(BuildContext context) TextStyle?
Returns the TextTheme.displayLarge of the current context
getHeadline(BuildContext context) TextStyle?
Returns the TextTheme.headlineLarge of the current context
getLabel(BuildContext context) TextStyle?
Returns the TextTheme.labelLarge of the current context
getLiveColor(BuildContext context, String key) Color
Resolve the color key to the live ColorScheme value
getTextColor(Color background) Color
Returns the guesstimated most readable text color (black/white) for background Formula credit: https://stackoverflow.com/questions/3942878/how-to-decide-font-color-in-white-or-black-depending-on-background-color
getTitle(BuildContext context) TextStyle?
Returns the TextTheme.titleLarge of the current context
handName(BuildContext context, Hand hand) String
Get the proper String name for Hand
heightOf(BuildContext context) double
More readable than MediaQuery.of(context).size.height
isUrl(String text) bool
Returns whether the passed text follows a URL pattern
logAlert({required BuildContext context, String? title, required String message}) Future
Log the passed message and display an EzAlertDialog to notify the user
lookupEFUILang(Locale locale) Future<EFUILang>
measureText(dynamic text, {required TextStyle? style, required BuildContext context}) Size
Returns the soon-to-be rendered size of text via a TextPainter
popAndPushScreen({required BuildContext context, required Widget screen}) Future
More readable than Navigator.pop && Navigator.push spelled out
popScreen({required BuildContext context, dynamic result}) → void
Alias for Navigator.pop
popUntilHome(BuildContext context) → void
More readable than Navigator function spelled out Runs Navigator.popUntil the ModalRoute named homeRoute
provideImage(String path) ImageProvider<Object>
Provide the path to an Image and we'll handle the rest
pushScreen({required BuildContext context, required Widget screen}) Future
More readable than Navigator.push spelled out
replaceScreen({required BuildContext context, required Widget screen}) Future
More readable than Navigator.pushReplacement spelled out
setPageTitle(String title) → void
For web apps, set the tab's title
sstName(BuildContext context, SliderSettingType settingType) String
Get the proper String name for EzSliderSetting.type
storeImageColorScheme({required Brightness brightness, required String path}) Future<void>
Generates a ColorScheme based on the image found at path Then stores the values in EzConfig.preferences
widthOf(BuildContext context) double
More readable than MediaQuery.of(context).size.width