flutterflow_components
library
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(dynamic 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.
-
getBoldStyle({double fontSize = AppFontSize.s12, required Color color})
→ TextStyle
-
-
getCube(int percent, dynamic context)
→ SizedBox
-
Returns a SizedBox with width and height based on the specified percentage of the screen dimensions.
-
getDateTimeToDay(String dateString)
→ String
-
Converts a date string to a human-readable format indicating the day and time.
-
getHeight(int percent, dynamic 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, dynamic 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(dynamic 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({dynamic 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 dynamic fileUser, bool editable = false, required dynamic context})
→ Widget
-
Returns a preview of a base64-encoded image.
-
previewProductImage(dynamic fileUser, dynamic 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