utils/helper_widgets library
This file contains helper widgets that can be used throughout the app. These widgets include:
addVerticalSpaceandaddHorizontalSpacewhich return aSizedBoxwith a specified height or width respectively.headlineMediumText,headlineSmallText, andheardlineLargeTextwhich return anAutoSizeTextwidget with a specified text and style.captionTextwhich returns aTextwidget with a specified text and style.CustomIconButtonwhich returns aContainerwith aIconButtonwidget inside it, with a specified icon, size, and color.CustomAppBarwhich returns anAppBarwidget with a specified title and leading and trailing icons.customDialogwhich returns aFuturethat shows a dialog with a specified widget inside it.
Functions
-
addHorizontalSpace(
double width) → Widget - Returns a SizedBox widget with a specified width.
-
addVerticalSpace(
double height) → Widget - Returns a SizedBox widget with a specified height.
-
customDialog(
{required BuildContext context, required Widget widget, dynamic insetPadding = appPadding}) → Future -
Displays a custom dialog with the given
widgetas its child. Returns a Future that resolves to the value (if any) that was passed to Navigator.pop when the dialog was closed. -
loadingWidget(
) → Widget