ud_widgets library Null safety

Classes

DoNotUseThisPackageColors
UdAlertWidget
UdAppBar
UdAssetImage
UdBase64Image
UdBasicButton
UdBasicTextInputField
UdByteImage
UdCard
UdGapX
UdGapY
UdIconButton
Use UdIconButton when you want only an Icon widget to work like a button. You can pass Icon widget, padding arround it and a function to execute on tap.
UdImageButton
Use UdImageButton when you want only an asset image to work like a button. You can pass image path, its size, padding arround image and a function to execute on tap.
UdNetworkImage
UdRadioButton
UdRadiusClip
UdScaffold
UdShape
UdStraightLine
UdSvgButton
Use UdSvgButton when you want only an svg image/icon to work like a button. You can pass svg path, its size, padding arround svg and a function to execute on tap.
UdSvgImage
UdTapper
To do something on tap using any widgets, wrap your widget inside UdTapper and use onTap function.
UdText
UdTextButton
Use UdTextButton when you want only text to work like a button. You can pass button text, its size, weight, color, padding arround text and a function to execute on tap.

Functions

udAlertFunction({required BuildContext context, String? title, double? titleFontSize, String? message, double? messageFontSize, String? button1Text, double? button1FontSize, Function? button1Function, String? button2Text, double? button2FontSize, Function? button2Function, double? alertBorderRadius, bool? closeAlertOnTapArround, Color? colorAroundTheAlert}) Future<void>
To show some information in an alert you can use this function. It can not be used for Widget type return. For that you can use UdAlertWidget
udContainerBoxDecoration({required BuildContext context, Color? backgroundColor, double? borderRadius, BorderRadius? customBorderRadius, Color? borderColor, double? borderWidth, bool? disableShadow, Color? shadowColor, Offset? shadowOffset, double? shadowBlurRadius, double? shadowSpreadRadius, bool? gradientEnable, Gradient? gradient}) BoxDecoration
Box decoration for container is now more easy with udContainerBoxDecoration. Just check parameters and pass values.