widgets/widget_utils
library
Functions
-
backgroundImage()
→ Widget
-
-
cardOfWidgets(List<Widget> children)
→ Widget
-
-
getBackgroundWidget(Widget widget)
→ Widget
-
-
getButton(String text, Function function, {bool disabled = false, Color? bgColor, bool withCorners = true, Color? textColor, FontWeight weight = FontWeight.w500, EdgeInsetsGeometry? insetsGeometry, String? icon, bool isBorder = false, Color borderColor = Colors.transparent, bool loading = false})
→ Widget
-
-
getButtonContainer({required Widget child, EdgeInsetsGeometry? insetsGeometry, double? marginRight, Color? color, bool loading = false})
→ Widget
-
-
-
getCustomText(String text, {Color? color, int maxLine = 1, TextAlign align = TextAlign.start, FontWeight weight = FontWeight.w400, double? size})
→ Widget
-
-
getCustomTextLabel(String text, {String? icon, Color? color, FontWeight weight = FontWeight.w400, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start})
→ Widget
-
-
getCustomTextLabelValue(String label, String value, {String? icon})
→ Widget
-
-
getCustomTextValue(String text, {String? icon})
→ Widget
-
-
getCustomTextWithoutMaxLine(String text, {Color? color, TextAlign align = TextAlign.center, FontWeight weight = FontWeight.w400, double? size, double? txtHeight})
→ Widget
-
-
-
getDropdown<T>({FocusNode? focusNode, String? icon, required List<T> list, String? label, required dynamic getText(T), required Rx<T?> selected, void additionalOnChanged(T?)?, bool readOnly = false})
→ Widget
-
-
getEmptyItem({String icon = 'ghost', String text = 'Tidak ada data', double percentHeight = 85, bool withScroll = true})
→ Widget
-
-
getFormContainer({required RxList<MahasMessageModel> error, RxBool? loadingSubmit, required RxBool loadingForm, RxBool? loadingDelete, RxBool? isReadOnly, required Widget child, Function? saveOnTap, Future<void> onRefresh()?, Function? editOnTap, Function? deleteOnTap})
→ List<Widget>
-
-
getGestureDetector({required BuildContext context, required Widget child})
→ Widget
-
-
getIcon(String icon, {double? size, Color? color})
→ Widget
-
-
getListItem({void onTap()?, required Widget child, bool marginHorizontal = true, bool hide = false, bool loading = false, void editOnTap()?, void deleteOnTap()?})
→ Widget
-
-
getMessageBoxListView(List<MahasMessageModel> models, {bool withMargin = false, double? marginBottom, double? marginTop = 3.0})
→ Widget
-
-
getMessageBoxStatusBatal({bool batal = false, String? alasan})
→ Widget
-
-
getResultNotFound({dynamic onRefresh()?})
→ Widget
-
-
getSettingRow(String icon, String title, Function function)
→ Widget
-
-
getSpaceHeight(double percent, {bool fromHeight = true})
→ Widget
-
-
getSpaceListItem()
→ Widget
-
-
getSpaceWidth(double percent, {bool fromHeight = true})
→ Widget
-
-
getSvgImage(String image, double size, {Color? color})
→ Widget
-
-
getTextField(TextEditingController controller, {void onChanged(String)?, FocusNode? focusNode, String? label, String? hint, String? icon, void iconOnTap()?, Color? iconColor, String? id, bool? showPass, List<MahasMessageModel>? validation, String? rightIcon, Color? rightIconColor, Function? rightIconFieldFunction, bool readOnly = false, bool allowActionWhenReadOnly = false, Color? colorSet, void onTap()?, List<TextInputFormatter>? inputFormatters, TextInputType? keyboardType, TextAlign? textAlign, Function? onBlur})
→ Widget
-