uiflow library

Classes

AnimatedFadeIn
Animated widget wrappers for simpler usage
AnimatedScaleIn
AnimatedSlideIn
AppAnimations
Pre-built animation utilities for common use cases
AppAssets
AppAvatar
Avatar widget with fallback
AppBadge
Custom badge widget for notifications and counts
AppCard
Custom card widget with elevation and styling
AppChip
Custom chip widget
AppColors
AppConstants
AppDialogs
Professional dialog helpers for common use cases
AppDivider
Divider with text
AppEmptyState
Empty state widget
AppFontSize
AppFontWeight
AppFormatters
Collection of text input formatters for common use cases
AppMargin
AppPadding
AppProgress
Progress indicator with label
AppSize
AppValidators
A collection of reusable form validators for common use cases.
FontConstants
MultipleItemSelect
A widget for choosing items with optional multi-selection support.
ShimmerLoading
Shimmer effect for loading states
StaggeredListAnimation
Staggered list animation
Uiflow
UiflowPlatform

Extensions

BuildContextExtensions on BuildContext
BuildContext extensions
DateTimeExtensions on DateTime
DateTime extensions
DoubleExtensions on double
GetHexColor on Color
IntExtensions on int
Number extensions
ListExtensions on List<T>
List extensions
StringExtensions on String
String extensions for common operations

Properties

italic TextStyle
getter/setter pair

Functions

assetToUint8List(String assetPath) Future<Uint8List>
Converts an asset file to a Uint8List.
buildProductDetails({String? name, String? img}) Widget
Returns a card with product details.
buttonA({dynamic onPressed()?, required String buttonText, int? height, int? width, Color? color, int? borderSize, Color? textColor}) Widget
Custom Button widget with common styling.
chooseFile(BuildContext context) Widget
Returns a container for choosing a file with an edit icon.
columnHomeItems({required String itemPhotoLink, required String itemPrice, required String itemName, required String itemDescription}) Widget
Widget for displaying items in a column with photo, price, name, and description.
fontAlmarai({double? size, Color? textColor, FontWeight? fontWeight}) TextStyle
Returns a TextStyle using the Almarai font.
fontElMessiri({double? size, Color? textColor, FontWeight? fontWeight}) TextStyle
Returns a TextStyle using the El Messiri font.
fontLobster({double? size, Color? textColor, FontWeight? fontWeight}) TextStyle
Returns a TextStyle using the Lobster font.
fontPoppins({double? size, Color? textColor, FontWeight? fontWeight}) TextStyle
Returns a TextStyle using the Poppins font.
generateCode() String
Generates a random code string of length 8 using alphanumeric characters.
getApplicationTheme() ThemeData
getBoldStyle({double fontSize = AppFontSize.s12, required Color color}) TextStyle
getCube(int percent, BuildContext context) SizedBox
Returns a SizedBox with width and height based on the specified percentage of the screen dimensions.
getDarkApplicationTheme() ThemeData
getDateTimeToDay(String dateString) String
Converts a date string to a human-readable format indicating the day and time.
getHeight(int percent, BuildContext context) double
Returns the height based on the specified percentage of the screen height.
getLightStyle({double fontSize = AppFontSize.s12, required Color color}) TextStyle
getMediumStyle({double fontSize = AppFontSize.s12, required Color color}) TextStyle
getRegularStyle({double fontSize = AppFontSize.s12, required Color color}) TextStyle
getSemiBoldStyle({double fontSize = AppFontSize.s12, required Color color}) TextStyle
getSkeletonLoading({required PostsType type}) Widget
Returns a skeleton loading widget based on the specified type.
getWidgetByIndex(int index, List<Widget> list) Widget
Retrieves a widget from a list by its index.
getWidth(int percent, BuildContext context) double
Returns the width based on the specified percentage of the screen width.
itemsList({String? name, String? img}) Widget
Widget for displaying items in a list with optional click handling.
loadButton({double? buttonHeight, double? buttonWidth, Color? textColor, double? textSize, double? buttonElevation, required dynamic onPressed(), required String buttonText, required BuildContext context, required bool isLoading}) Widget
Loading Button widget with conditional visibility.
loadingAnimation({Widget? loadingType}) Widget
Returns a loading animation widget.
logoContainer(BuildContext context, String appAssetPath) Padding
Returns a padding container with a logo image.
openUrl(String url) → void
Opens a URL using the url_launcher package.
padBox({double? size}) Widget
Returns a Padding widget with uniform padding on all sides.
previewBase64Image({double padding = 5.0, Color backgroundColor = Colors.transparent, double photoRadius = 15.0, required String fileUser, bool editable = false, required BuildContext context}) Widget
Returns a preview of a base64-encoded image.
previewProductImage(String fileUser, BuildContext context) Widget
Returns a preview of a product image from base64-encoded string.
rowHomeItems({required String name, required String img, required Function onTap}) Widget
Widget for displaying items in a row with optional onTap callback.
showToast(String text, SnackBarType type, dynamic context) → void
Displays a toast notification with the specified text and type.
simpleCard({required String title, required IconData icon}) Widget
Widget for displaying a simple card with title and icon.
socialMediaItem({required int index, required String img, required Function onTap}) Widget
Widget for displaying social media items with onTap callback.
socialMediaItems({required int index, required String img, required Function onTap}) Widget
Returns a social media item widget.
textFieldA({Key? key, required TextEditingController controller, required String hintText, bool? obscureText = false, TextAlign textAlign = TextAlign.start, Icon? prefixIcon, double? internalPadding, void onChanged(String)?, void onSubmitted(String)?}) Widget
Custom TextField widget with common styling.
validateForm(GlobalKey<FormState> validateKey) bool
Validates a form based on the provided GlobalKey<FormState>.