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
- 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.
- ProgressController
- RestartableCircularProgressIndicator
- Sizer
- A widget that gets the device's details like orientation and constraints
- SizerUtil
- TextDirection
- Represents directionality of text.
Extensions
Properties
-
appBoxShadow
↔ List<
BoxShadow> -
read / write
- appPrimaryColor ↔ MaterialColor
-
read / write
- appSecondaryColor ↔ Color
-
read / write
- appSecondaryColorDark ↔ Color
-
read / write
- appTextColor ↔ Color
-
read / write
-
read / write
- disabledButtonStyle ↔ ButtonStyle
-
read / write
- grey_h1Style ↔ TextStyle
-
read / write
- grey_h1Style_bold ↔ TextStyle
-
read / write
- grey_h1Style_bold_web ↔ TextStyle
-
read / write
- grey_h1Style_web ↔ TextStyle
-
read / write
- grey_h2Style ↔ TextStyle
-
read / write
- grey_h2Style_bold ↔ TextStyle
-
read / write
- grey_h2Style_bold_web ↔ TextStyle
-
read / write
- grey_h2Style_web ↔ TextStyle
-
read / write
- grey_h3Style ↔ TextStyle
-
read / write
- grey_h3Style_bold ↔ TextStyle
-
read / write
- grey_h3Style_bold_web ↔ TextStyle
-
read / write
- grey_h3Style_web ↔ TextStyle
-
read / write
- grey_h4Style ↔ TextStyle
-
read / write
- grey_h4Style_web ↔ TextStyle
-
read / write
- heading1_style ↔ TextStyle
-
read / write
- heading1_style_web ↔ TextStyle
-
read / write
- heading2_style ↔ TextStyle
-
read / write
- heading2_style_web ↔ TextStyle
-
read / write
- heading3_style ↔ TextStyle
-
read / write
- heading3_style_web ↔ TextStyle
-
read / write
- heading4_style ↔ TextStyle
-
read / write
- heading4_style_web ↔ TextStyle
-
read / write
- headingStyle ↔ TextStyle
-
read / write
- hintColor ↔ Color
-
read / write
- listFillColor ↔ Color
-
read / write
- normal_h1Style ↔ TextStyle
-
read / write
- normal_h1Style_bold ↔ TextStyle
-
read / write
- normal_h1Style_bold_web ↔ TextStyle
-
read / write
- normal_h1Style_web ↔ TextStyle
-
read / write
- normal_h2Style ↔ TextStyle
-
read / write
- normal_h2Style_bold ↔ TextStyle
-
read / write
- normal_h2Style_bold_web ↔ TextStyle
-
read / write
- normal_h2Style_web ↔ TextStyle
-
read / write
- normal_h3Style ↔ TextStyle
-
read / write
- normal_h3Style_bold ↔ TextStyle
-
read / write
- normal_h3Style_bold_web ↔ TextStyle
-
read / write
- normal_h3Style_web ↔ TextStyle
-
read / write
- normal_h4Style ↔ TextStyle
-
read / write
- normal_h4Style_bold ↔ TextStyle
-
read / write
- normal_h4Style_bold_web ↔ TextStyle
-
read / write
- normal_h4Style_web ↔ TextStyle
-
read / write
- normal_h5Style ↔ TextStyle
-
read / write
- normal_h5Style_bold ↔ TextStyle
-
read / write
- normal_h5Style_bold_web ↔ TextStyle
-
read / write
- normal_h5Style_web ↔ TextStyle
-
read / write
- normal_h6Style ↔ TextStyle
-
read / write
- normal_h6Style_bold ↔ TextStyle
-
read / write
- normal_h6Style_bold_web ↔ TextStyle
-
read / write
- normal_h6Style_web ↔ TextStyle
-
read / write
- opacityGrey ↔ Color
-
read / write
- primaryColorText ↔ TextStyle
-
read / write
- ratingColor ↔ Color
-
read / write
- roundDecoration ↔ BoxDecoration
-
read / write
- roundDecorationWithBorder ↔ BoxDecoration
-
read / write
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(
String? input, [String? locale]) → String? - Convert a string to beginning of sentence case, in a way appropriate to the locale.
Enums
- CustomDirection
- DeviceType
- Type of Device
- InputBorderType
- WidgetType
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< Function()C2Choice< >T> > - Callback to load the choice items
- ResponsiveBuild = Widget Function(BuildContext context, Orientation orientation, DeviceType deviceType)
-
Provides
Context
,Orientation
, andDeviceType
parameters to the builder function