custom_utils library

Classes

Bidi
This provides utility methods for working with bidirectional text. All of the methods are static, and are organized into a class primarily to group them together for documentation and discoverability.
BidiFormatter
Bidi stands for Bi-directional text. According to Wikipedia: Bi-directional text is text containing text in both text directionalities, both right-to-left (RTL) and left-to-right (LTR). It generally involves text containing different types of alphabets, but may also refer to boustrophedon, which is changing text directionality in each row.
C2Choice<T>
Choice item
C2ChoiceMemoizer<T>
alias to AsyncMemoizer
C2MultiState<T>
State for Single Choice
C2Placeholder
Default placeholder widget
C2SingleState<T>
State for Single Choice
C2Spinner
Default spinner widget
C2State<T>
Chips Choice State
ChipsChoice<T>
Easy way to provide a single or multiple choice chips
ConnectionListener
CustomAnimatedWidget
CustomBottomMenuItem
CustomBottomNavigation
CustomButton
CustomCheckboxListTile
CustomChips
CustomInputController
CustomInputField
CustomInputFormatter
CustomListviewBuilder
CustomOutlinedButton
CustomProgressWidget
CustomSwitchListTile
CustomTabBarView
CustomUtils
DateFormat
DateFormat is for formatting and parsing dates in a locale-sensitive manner.
ExpandableText
ExpandableTextState
FullScreenPage
ImageFullScreenWrapperWidget
Intl
The Intl class provides a common entry point for internationalization related tasks. An Intl instance can be created for a particular locale and used to create a date format via anIntl.date(). Static methods on this class are also used in message formatting.
MicroMoney
Used primarily for currency formatting, this number-like class stores millionths of a currency unit, typically as an Int64.
MoneyMaskedTextController
Mask for monetary values.
NotFound
NumberFormat
Provides the ability to format a number in a locale-specific way.
NumberParserBase<R>
ProgressController
RestartableCircularProgressIndicator
Sizer
A widget that gets the device's details like orientation and constraints
SizerUtil
TextDirection
Represents directionality of text.

Extensions

SizerExt on num

Properties

appBoxShadow List<BoxShadow>
getter/setter pair
appPrimaryColor MaterialColor
getter/setter pair
appSecondaryColor Color
getter/setter pair
appSecondaryColorDark Color
getter/setter pair
appTextColor Color
getter/setter pair
buttonColor Color
getter/setter pair
disabledButtonStyle ButtonStyle
getter/setter pair
grey_h1Style TextStyle
getter/setter pair
grey_h1Style_bold TextStyle
getter/setter pair
grey_h1Style_bold_web TextStyle
getter/setter pair
grey_h1Style_web TextStyle
getter/setter pair
grey_h2Style TextStyle
getter/setter pair
grey_h2Style_bold TextStyle
getter/setter pair
grey_h2Style_bold_web TextStyle
getter/setter pair
grey_h2Style_web TextStyle
getter/setter pair
grey_h3Style TextStyle
getter/setter pair
grey_h3Style_bold TextStyle
getter/setter pair
grey_h3Style_bold_web TextStyle
getter/setter pair
grey_h3Style_web TextStyle
getter/setter pair
grey_h4Style TextStyle
getter/setter pair
grey_h4Style_web TextStyle
getter/setter pair
heading1_style TextStyle
getter/setter pair
heading1_style_web TextStyle
getter/setter pair
heading2_style TextStyle
getter/setter pair
heading2_style_web TextStyle
getter/setter pair
heading3_style TextStyle
getter/setter pair
heading3_style_web TextStyle
getter/setter pair
heading4_style TextStyle
getter/setter pair
heading4_style_web TextStyle
getter/setter pair
headingStyle TextStyle
getter/setter pair
hintColor Color
getter/setter pair
listFillColor Color
getter/setter pair
normal_h1Style TextStyle
getter/setter pair
normal_h1Style_bold TextStyle
getter/setter pair
normal_h1Style_bold_web TextStyle
getter/setter pair
normal_h1Style_web TextStyle
getter/setter pair
normal_h2Style TextStyle
getter/setter pair
normal_h2Style_bold TextStyle
getter/setter pair
normal_h2Style_bold_web TextStyle
getter/setter pair
normal_h2Style_web TextStyle
getter/setter pair
normal_h3Style TextStyle
getter/setter pair
normal_h3Style_bold TextStyle
getter/setter pair
normal_h3Style_bold_web TextStyle
getter/setter pair
normal_h3Style_web TextStyle
getter/setter pair
normal_h4Style TextStyle
getter/setter pair
normal_h4Style_bold TextStyle
getter/setter pair
normal_h4Style_bold_web TextStyle
getter/setter pair
normal_h4Style_web TextStyle
getter/setter pair
normal_h5Style TextStyle
getter/setter pair
normal_h5Style_bold TextStyle
getter/setter pair
normal_h5Style_bold_web TextStyle
getter/setter pair
normal_h5Style_web TextStyle
getter/setter pair
normal_h6Style TextStyle
getter/setter pair
normal_h6Style_bold TextStyle
getter/setter pair
normal_h6Style_bold_web TextStyle
getter/setter pair
normal_h6Style_web TextStyle
getter/setter pair
opacityGrey Color
getter/setter pair
primaryColorText TextStyle
getter/setter pair
ratingColor Color
getter/setter pair
roundDecoration BoxDecoration
getter/setter pair
roundDecorationWithBorder BoxDecoration
getter/setter pair

Functions

checkForInternetConnection({required ConnectionListener listener}) → dynamic
convertTimeToText(int timestamp, String suffix) String
flightShuttleBuilder(BuildContext flightContext, Animation<double> animation, HeroFlightDirection flightDirection, BuildContext fromHeroContext, BuildContext toHeroContext) Widget
getTabBarTitlesToTabs(List<String> tabBarTitles) List<Widget>
launchUrl(String url) → void
selectDate(BuildContext context, int startTimestamp, int? selectedTimestamp) Future<DateTime>
showIosDialog({required BuildContext context, required String title, required String message, VoidCallback? onConfirm, VoidCallback? onCancel, String? confirmText, String? cancelText}) → void
showOptionsBottomSheet({required BuildContext context, required Text title, required List<ListTile> options, required ValueChanged<int> onItemSelected, bool? showSkipButton, String? skipButtonText, VoidCallback? onSkipPressed}) → void
timestampToDateFormat(int timestamp, String format) String
timeStampToDateTime(int timestamp, String pattern) String
toBeginningOfSentenceCase<T extends String?>(T input, [String? locale]) → T
Convert a string to beginning of sentence case, in a way appropriate to the locale.

Typedefs

C2Builder<T> = Widget? Function(C2Choice<T> item, int i)
Builder for custom choice item
C2Changed<T> = void Function(T value)
Callback when the value changed
C2Chip = FlexiChip
C2ChipCheckmarkStyle = FlexiChipCheckmarkStyle
C2ChipEvent = FlexiChipEvent
C2ChipStyle = FlexiChipStyle
C2ChoiceLoader<T> = Future<List<C2Choice<T>>> Function()
Callback to load the choice items
ResponsiveBuild = Widget Function(BuildContext context, Orientation orientation, DeviceType deviceType)
Provides Context, Orientation, and DeviceType parameters to the builder function