lit_ui_kit library

A collection of Flutter widgets.

To use, import package:lit_ui_lit/lit_ui_kit.dart.

Dependencies used:

  • package_info
  • intl

To use the above mentioned dependencies, please include them separatly on the pubspec.yaml of your project. These will not be exported to avoid namespace issues.

Classes

AnimatedActionButton
An action button which will be animated.
AnimationOnScrollController
A controller playing animations triggered by scrolling.
ApplicationLicenseDetailsScreen
A screen Widget displaying package license details.
ApplicationLicensesController
A controller class to retrieve the licenses registered in the application.
ApplicationLicensesScreen
A screen Widget to display all packages registered in the application.
BackgroundBubblesPainter
A painter used to draw an animated bubble backgroud.
BluredBackgroundContainer
CalendarController
CalendarLocalizationService
A service class to access localized calendar labels for different regions.
CircularCloseButton
A circular button, which can be pressed in order to remove a widget route from the stack or to remove a certain widget from the visible area.
CleanInkWell
A stripped out transparent InkWell to hide the default Material's InkWell appearance.
ClippedText
Prevents the Text widget from clipping by setting an overflow property. The text can either be on one line or on mulitple lines. This will be needed to avoid pixel overflow if very long strings are displayed on small devices e.g. displaying a long first or last name inside constrained widgets.
CollapseOnScrollActionButton
An CustomActionButton whose label will be collapsed and expanded depending on the specified scroll controller's offset.
CollapsibleCard
CollapsibleCardController
CreditData
CustomActionButton
CustomAppBar
DialogActionButton
A button widget primarily designed to be used on the LitTitledDialog as a LitTitledDialog.actionButtons item.
DialogBackButton
DiscardDraftDialog
A LitUIKit widget that displays a LitTitledDialog allowing the user to either discard his unsaved draft or to cancel the discard process.
DummyActionButton
DummyCollapsibleCard
ExclamationRectangle
FadeInTransformContainer
FadeInTransformScaleContainer
FixedOnScrollAppbar
A CustomAppBar widget displaying an app bar.
HexColor
A controller class to provided extended functionality to default Color class.
ImageCacheController
A controller class to precache a list of provided images on startup.
IndexedPageView
A widget to display the provided children inside a PageView.
JugglingLoadingIndicator
A Widget to display a loading animation.
JugglingLoadingIndicatorPaint
LitAboutDialog
LitAnimatedGradientBackground
LitAppBar
The default CustomAppBar implementetion.
LitBackButton
LitBackButtonDefaultStyling
LitBadge
LitBaseSnackbar
An animated LitSnackbar positioned using the provided Alignment.
LitBlurredAppBar
A CustomAppBar which will blur all content underneath.
LitBottomNavigation
A bottom navigation bar allowing to switch between a list of tabs, which are displayed on the parent component.
LitBottomNavigationBarDefaultStyling
The default styling of LitBottomNavigation.
LitBottomNavigationTabData
The meta data of each tab inside the LitBottomNavigation.
LitBoxShadows
A collection of BoxShadow objects that can be used as decoration.
LitBubbleButton
A button widget displaying animated bubbles as its background layer.
LitColorPickerDialog
A dialog widget allowing to edit and create Color objects.
LitColors
A collection of Colors found throughout the LitLifeSoftware apps.
LitConfirmAgeScreen
A screen widget allowing the user to submit his age.
LitConstrainedSizedBox
LitCreditsScreen
LitDatePicker
A date picker widget allowing the modification of the provided selectedDate DateTime value.
LitDatePickerDialog
LitDivider
A widget visually seperating two similar looking widget.
LitDraggable
LitElevatedCard
A widget combining layout dependent box constraints and box shadow painting.
LitElevatedGlassCard
A widget to display an blurred and elevated background.
LitFocusController
Controlls the focus of the currently displayed Widget by accessing the BuildContext.
LitFooter
LitFooterDefaultStyling
LitGlowingButton
LitGradientButton
LitGradientCard
A widget combining layout dependent box constraints and gradient style painting.
LitIcons
The IconData objects used to implement the LitIcons.
LitIconSnackbar
An animated LitSnackbar positioned using the provided Alignment.
LitIconSnackbarContent
A widget displaying an icon alongside text.
LitInfoIcon
A art widget displaying a static info icon.
LitLifeSmileyImage
LitLockIcon
An icon displaying a lock.
LitNavigableTab
A model class combining the Widget view layer and it's meta data object.
LitNotificationContainer
A widget to show multiple notifications on top of the provided child.
LitNotificationController
LitNotificationData
A model class to describe a notification.
LitOfflineAppDisclaimerScreen
LitOnboardingScreen
LitPlainLabelButton
LitPrivacyDisclaimerScreen
A screen widget used to inform the user the app's privacy policy.
LitPrivacyPolicyScreen
A screen widget to display the provided privacy policy text and to enable the user to agree the privacy policy.
LitPushedButton
LitPushedThroughButton
A button which will be animated on pressing it.
LitRoundedElevatedButton
LitRoundedFlatButton
LitRoundedOutlinedButton
LitRouteController
The LitRouteController enables navigation between multiple screens without the need to specify a particular PageRoute on every navigation as it is done by using Navigator.push. Pushing the PageRoute into the widget stack is done by calling the either pushCupertinoWidget
LitSansSerifStyles
A collection of sans serif TextStyles.
LitScaffold
Widget used to overlay multiple functinal Widgets to ensure no unintended overlapping will occur.
LitScrollbar
A scrollbar widget providing an interactive scrollbar on it's child widget.
LitSerifStyles
A collection of serif TextStyles.
LitSettingsFooter
A widget displaying a List of minimalist buttons on a LitFooter.
LitSettingsPanel
A StatelessWidget to allow the user to enable and disable various options.
LitSettingsPanelBackgroundOverlay
LitSettingsPanelController
LitSettingsPanelTile
LitSignUpScreen
A screen widget allowing the user to submit his core data.
LitSlider
LitSliderCard
LitSliderOverlay
LitSliderThumb
LitSliderToggleButton
LitSnackbar
A custom snackbar widget.
LitSnackbarController
A controller to handle animations on LitSnackbar widgets.
LitStartupScreen
A screen widget displaying a specified artwork in front of a bubble-styled animated background.
LitStaticLoadingScreen
A screen widgets displayed a static loading indicator.
LitSwitchButton
A StatelessWidget which will create a toggleable button.
LitTabView
A screen widget allowing to navigate the provided tab widgets inside an surrounding tab view.
LitTextBadge
LitTextField
LitTextPageView
LitTextStyles
A collection of TextStyles used throughout the LitSoftware apps.
LitTitledDialog
LitToggleButton
LitTooltipContainer
A Container which will show a tooltip while being long pressing. The provided child will wrapped inside the Container.
LitTransformAnimatedButton
LitTransparentIconSnackbar
An animated LitSnackbar positioned using the provided Alignment.
LitTransparentSnackbar
An animated LitSnackbar positioned using the provided Alignment.
LitUserIcon
A widget displaying an username on a colored background.
MinimalistAppBar
OnValueChangedAnimatedContainer
PackageLicenses
packageLicenseJunctions
PhotosensitiveDisclaimerScreen
PlatformInfo
A controller class to implement platform related labeling such as the device's operation system and its trademark notices.
PrivacyTag
An model class to provide structured data display on the LitPrivacyPolicyScreen.
ScaledDownText
Wrapps the Text widget inside a scaled down FittedBox to ensure the Text will be displayed on all screens without any pixel overflow or clipping. This could be needed if titles and headlines are displayed. Note that the wrapped ScaledDownText must receive definite boundaries by e.g. a SizedBox with a fixed width.
ScrollableColumn
A widgets that wrapps the provided children inside a column, which then is wrapped inside a scroll view to allow scrolling through children.
TextPageContent
A model class to describe text page's card content. The card will display a subtitle, a title and a description text.
TitledCollapsibleCard
TitleScreen
A screen widget to display animated opening credits.

Enums

AnimationDirection
A List of available animation directions.
SnackbarAnimationType
Available types of LitSnackbar animations.

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

Constants

black → const FontWeight
body → const int
body2 → const int
bold → const FontWeight
button → const int
buttonTextFontSize → const double
caption → const int
captionFontSize → const double
defaultBodySize → const double
defaultColor → const Color
The default text color for all TextStyles.
defaultHeaderSize → const double
defaultSubHeaderSize → const double
header5 → const int
header6 → const int
light → const FontWeight
looseSpacing → const double
regular → const FontWeight
smallBodySize → const double
smallerBodySize → const double
tighterSpacing → const double
veryTightSpacing → const double

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