leitmotif library Null safety

A collection of Flutter widgets.

To use, import package:leitmotif/leitmotif.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

ActionButtonData
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 Flutter 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. [...]
FixedOnScrollTitledAppbar
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 Flutter widget displaying an animated loading animation.
JugglingLoadingIndicatorPaint
A CustomPainter to paing the progress animation.
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.
LitCardTitle
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
LitDescriptionTextBox
A Flutter widget displaying an Icon alongside the provided description text in order to share information in a textual manner.
LitDivider
A widget visually seperating two similar looking widget. [...]
LitDraggable
A draggable container that stretches across the whole screen. [...]
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. [...]
LitGradients
A collection of LinearGradient that can be used as decoration.
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. [...]
LitScreenTitle
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. [...]
LitTitledActionCard
A Flutter widget displaying information and allowing the user to pick an action to respond to the given information.
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. [...]

Extensions

ColorUtility
DateTimeAgeConversion
DateTimeValidation
Extension on the DateTime class to allow further validation for DateTime checks perfomed for specific calendar features.
LocalizedDateTime
Extension on DateTime class to shorten the process of localizing formatted DateTimes.
StringUtility

Constants

black → const FontWeight
FontWeight.w800
body → const int
2
body2 → const int
3
bold → const FontWeight
FontWeight.w700
button → const int
1
buttonTextFontSize → const double
14.0
caption → const int
0
captionFontSize → const double
11.0
defaultBodySize → const double
14.0
defaultColor → const Color
The default text color for all TextStyles.
LitColors.mediumGrey
defaultHeaderSize → const double
20.0
defaultSubHeaderSize → const double
16.0
header5 → const int
4
header6 → const int
5
light → const FontWeight
FontWeight.w500
looseSpacing → const double
0.65
regular → const FontWeight
FontWeight.w600
smallBodySize → const double
11.0
smallerBodySize → const double
13.0
tighterSpacing → const double
0.0
veryTightSpacing → const double
-0.70

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

Enums

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