ccl_ui library

Classes

AnimatedText
A widget that animates the appearance of text.
BackgroundProgress<T extends BaseViewModel>
A widget that displays a progress indicator overlay when the provided ViewModel is busy.
BackgroundProgressSettings
CCLFilledInputBorder
A filled input border for an InputDecorator.
CCLLocalization
A widget that provides localization for its child widget.
CCLTable
A widget that displays a table.
CCLTableCell
Represents a cell in a CCLTable widget.
CCLTableRow
Represents a row in a CCLTable widget.
CCLUiConfigurator
Configures and provides access to CCLUiSettings for its descendants.
CCLUiSettings
Represents the UI settings for the CCL (Common Components Library).
DummyView
A simple widget for debugging and testing purposes.
EmptyWidget
EmptyWidgetSettings
Represents settings for an empty state widget.
ErrorView
A widget that displays an error message with an optional title and button.
FutureWidget<T>
A widget that displays a loading indicator while a future is being loaded, then displays the result of the future once it has completed.
GeneralSettings
Represents general UI settings.
NotificationIcon
NotificationIconModel
StreamWidget<T>
A widget that displays a loading indicator while a stream is being listened to, then displays the data from the stream once it has emitted a value.

Extensions

BuildContextExt on BuildContext
Extension methods for the BuildContext class.
FontWeightExtension on TextStyle?
TextColorExtension on TextStyle?
Extension on TextStyle to provide convenience methods for setting text colors based on theme colors

Constants

horizontalSpaceBold → const Widget
Creates a horizontal space widget with sizeBold width.
horizontalSpaceDefault → const Widget
Creates a horizontal space widget with sizeDefault width.
horizontalSpaceLarge → const Widget
Creates a horizontal space widget with sizeLarge width.
horizontalSpaceLight → const Widget
Creates a horizontal space widget with sizeLight width.
horizontalSpaceMedium → const Widget
Creates a horizontal space widget with sizeMedium width.
horizontalSpaceSmall → const Widget
Creates a horizontal space widget with sizeSmall width.
horizontalSpaceTiny → const Widget
Creates a horizontal space widget with sizeTiny width.
sizeBold → const double
Defines a constant for bold size, which is 36.0.
sizeDefault → const double
Defines a constant for default size, which is 16.0.
sizeLarge → const double
Defines a constant for large size, which is 52.0.
sizeLight → const double
Defines a constant for light size, which is 8.0.
sizeMassive → const double
Defines a constant for massive size, which is 120.0.
sizeMedium → const double
Defines a constant for medium size, which is 24.0.
sizeSmall → const double
Defines a constant for small size, which is 12.0.
sizeTiny → const double
Defines a constant for tiny size, which is 4.0.
spacedDivider → const Widget
Creates a spaced divider widget with medium vertical space.
verticalSpaceBold → const Widget
Creates a vertical space widget with sizeBold height.
verticalSpaceDefault → const Widget
Creates a vertical space widget with sizeDefault height.
verticalSpaceLarge → const Widget
Creates a vertical space widget with sizeLarge height.
verticalSpaceLight → const Widget
Creates a vertical space widget with sizeLight height.
verticalSpaceMassive → const Widget
Creates a vertical space widget with sizeMassive height.
verticalSpaceMedium → const Widget
Creates a vertical space widget with sizeMedium height.
verticalSpaceSmall → const Widget
Creates a vertical space widget with sizeSmall height.
verticalSpaceTiny → const Widget
Creates a vertical space widget with sizeTiny height.

Functions

flexibleSpaceBarExpandedHeight(BuildContext context, {int mobile = 5, int tablet = 4}) double
Gets the expanded height of the FlexibleSpaceBar based on the current screen type and the specified mobile and tablet values.
getResponsiveExtraLargeFontSize(BuildContext context) double
Gets a responsive extra large font size based on the screen width.
getResponsiveFontSize(BuildContext context, {double? fontSize, double? max}) double
Gets a responsive font size based on the screen width and the specified fontSize and max.
getResponsiveHorizontalSpaceMedium(BuildContext context) double
Gets a responsive horizontal space with medium size based on the screen width.
getResponsiveLargeFontSize(BuildContext context) double
Gets a responsive large font size based on the screen width.
getResponsiveMassiveFontSize(BuildContext context) double
Gets a responsive massive font size based on the screen width.
getResponsiveMediumFontSize(BuildContext context) double
Gets a responsive medium font size based on the screen width.
getResponsiveSmallFontSize(BuildContext context) double
Gets a responsive small font size based on the screen width.
getScreenHeightFraction(BuildContext context, {double fraction = 1.0, double offsetBy = 0, double max = 3000}) double
Gets a fraction of the screen height based on the specified fraction, offsetBy, and max values.
getScreenWidthFraction(BuildContext context, {double fraction = 1.0, double offsetBy = 0, double max = 3000}) double
Gets a fraction of the screen width based on the specified fraction, offsetBy, and max values.
halfScreenWidth(BuildContext context) double
Gets half of the screen width of the current context.
horizontalSpace(double width) Widget
Creates a horizontal space widget with the specified width.
quarterScreenWidth(BuildContext context) double
Gets a quarter of the screen width of the current context.
screenHeight(BuildContext context) double
Gets the screen height of the current context.
screenHeightFraction(BuildContext context, {int dividedBy = 1, double offsetBy = 0, double max = 3000}) double
Gets the fraction of the screen height considering dividedBy and offsetBy, with a maximum of max.
screenWidth(BuildContext context) double
Gets the screen width of the current context.
screenWidthFraction(BuildContext context, {int dividedBy = 1, double offsetBy = 0, double max = 3000}) double
Gets the fraction of the screen width considering dividedBy and offsetBy, with a maximum of max.
sh(BuildContext context) double
Gets the screen height of the current context.
sw(BuildContext context) double
Gets the screen width of the current context.
thirdScreenWidth(BuildContext context) double
Gets a third of the screen width of the current context.
titleColor(BuildContext context, ScrollController scrollController, double expandedHeight) Color
Determines the title color based on the scroll controller and the expanded height.
titleHorizontalPadding(ScrollController scrollController, double expandedHeight) double
Calculates the horizontal padding for the title based on the scroll controller and the expanded height.
verticalSpace(double height) Widget
Creates a vertical space widget with the specified height.

Typedefs

OnLocaleChanged = Future<void> Function(Locale locale)
OnTapNotificationIcon = void Function(BuildContext context)