utility library
Flutter widgets implementing utilies such as converter and class extenstions.
To use, import package:lit_ui_kit/utility.dart
.
Classes
- CalendarLocalizationService
- A service class to access localized calendar labels for different regions.
- HexColor
- A controller class to provided extended functionality to default Color class.
- PlatformInfo
- A controller class to implement platform related labeling such as the device's operation system and its trademark notices.
Extensions
- ColorUtility on Color
- DateTimeAgeConversion on DateTime
- DateTimeValidation on DateTime
- Extension on the DateTime class to allow further validation for DateTime checks perfomed for specific calendar features.
- LocalizedDateTime on DateTime
- Extension on DateTime class to shorten the process of localizing formatted DateTimes.
- StringUtility on String
Functions
-
alternativeAlignment(
Size deviceSize, {required Alignment portraitAlignment, required Alignment landscapeAlignment}) → Alignment -
alternativeBoxFit(
Size deviceSize, {required BoxFit portraitBoxFit, required BoxFit landscapeBoxFit}) → BoxFit -
alternativeFontSize(
Size deviceSize, {required double potraitFontSize, required double landscapeFontSize}) → double -
alternativeHeight(
Size deviceSize, {required double portraitHeight, required double landscapeHeight}) → double -
alternativeTransform(
Size deviceSize, {required Matrix4 portraitTransform, required Matrix4 landscapeTransform}) → Matrix4 -
alternativeWidth(
Size deviceSize, {required double portraitWidth, required double landscapeWidth}) → double -
isPortraitMode(
Size deviceSize) → bool