baaba_extensions library

Classes

AvatarWidgetx
A circular avatar that supports a network image, an initials fallback, an online indicator, and a badge count.
CountdownTimerWidgetx
A countdown timer that auto-ticks every second and fires onFinished when it reaches zero.
CountdownTimerWidgetxState
EmptyStateWidgetx
A centered empty-state widget with an icon, title, optional subtitle, and optional action button.
ExpandableWidgetx
An animated expand / collapse container.
GradientButtonWidgetx
A button with a gradient background.
HorizontalListWithoutHeight
Patterns
Predefined Patterns for different validation
PinInputWidgetx
A PIN / OTP input widget rendered as a row of individual boxes.
RatingWidgetx
A star rating widget for both input and read-only display.
ReadMoreWidgetx
ReadMoreWidgetxState
RestartAppWidgetx
RestartAppWidgetxState
SearchBarWidgetx
A styled search input with a clear button and built-in debounce.
SkeletonLoaderWidgetx
A shimmer-style loading placeholder.
StepperIndicatorWidgetx
A horizontal step progress indicator.
SwiperWidgetx
SwiperWidgetxState
VxTextBuilder
Flutter widget that automatically resizes text to fit perfectly within its bounds.

Properties

alphaRegExp RegExp
getter/setter pair
defaultDialogBorderRadiusGlobal BorderRadius
getter/setter pair
defaultDialogCancelColorGlobal Color
getter/setter pair
defaultDialogConfirmColorGlobal Color
getter/setter pair
defaultDialogInfoColorGlobal Color
getter/setter pair
defaultToastBackgroundColor Color
getter/setter pair
defaultToastBorderRadiusGlobal BorderRadius
getter/setter pair
defaultToastGravityGlobal ↔ ToastGravity
getter/setter pair
defaultToastTextColor Color
getter/setter pair
isMaskingEnabledGlobal bool
getter/setter pair

Functions

countDays(int difference) String
Converts the time difference to a number of days. This function truncates to the lowest day. returns ("1 day" OR "X days")
countHours(int difference) String
Converts the time difference to a number of hours. This function truncates to the lowest hour. returns ("1 hour" OR "X hours")
countMinutes(int difference) String
Converts the time difference to a number of minutes. This function truncates to the lowest minute. returns ("1 minute" OR "X minutes")
countMonths(int difference) String
Converts the time difference to a number of months. This function rounds to the nearest month. returns ("1 month" OR "X months" OR "1 year")
countSeconds(int difference) String
Converts the time difference to a number of seconds. This function truncates to the lowest second. returns ("Just now" OR "X seconds")
countWeeks(int difference) String
Converts the time difference to a number of weeks. This function truncates to the lowest week. returns ("1 week" OR "X weeks" OR "1 month")
countYears(int difference) String
Converts the time difference to a number of years. This function truncates to the lowest year. returns ("1 year" OR "X years")
currentMillisecondsTimeStamp() int
Returns the current time in milliseconds since epoch.
currentTimeStamp() int
Returns the current time as Unix seconds.
daysInMonth(int monthNum, int year) int
Returns the number of days in monthNum of year.
formatTime(int timestamp) String
returns how much time ago from timestamp
leapYear(int year) bool
Returns true when year is a leap year.