WidgetExtension extension
For underline your widget here are 6 type of underline you can use
all are having 4 members thickness
, gapWithText
, color
and isCenter
.
double thickness
=> use for underline thickness, default value is 1
double gapWithText
=> use for define gap between widget and underline, default is 2
Color color
=> use for color of underline, default is black
bool isCenter
=> use for define widget is in center of underline, default is false
- on
Methods
-
dashUnderline(
{double thickness = 1, double gapWithText = 2, Color color = Colors.black, bool isCenter = false}) → Widget - For make Single dashed Underline
-
dottedUnderline(
{double thickness = 1, double gapWithText = 2, Color color = Colors.black, bool isCenter = false}) → Widget - For make Single dotted Underline
-
doubleDashUnderline(
{double thickness = 1, double gapWithText = 2, Color color = Colors.black, bool isCenter = false}) → Widget - For make Double Dashed Underline
-
doubleDottedUnderline(
{double thickness = 1, double gapWithText = 2, Color color = Colors.black, bool isCenter = false}) → Widget - For make Double Dotted Underline
-
doubleUnderline(
{double thickness = 1, double gapWithText = 2, Color color = Colors.black, bool isCenter = false}) → Widget - For make Double Underline
-
paddingAll(
double value) → Padding - to set padding same in all side
-
paddingLTRB(
double left, double top, double right, double bottom) → Padding - to set padding in different in left top right bottom
-
paddingOnly(
{double left = 0, double top = 0, double right = 0, double bottom = 0}) → Padding - to set padding in only in left top right bottom any
-
paddingSymmetric(
{double horizontal = 0, double vertical = 0}) → Padding - to set padding in Symmetric way horizontal and vertical
-
toCard(
{Key? key, Color? color, Color? shadowColor, double? elevation, ShapeBorder? shape, bool borderOnForeground = true, EdgeInsetsGeometry? margin, Clip? clipBehavior, bool semanticContainer = true}) → Card - To make any widget into Card with all other member of Card
-
toContainer(
{Key? key, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, Decoration? foregroundDecoration, double? width, double? height, BoxConstraints? constraints, EdgeInsetsGeometry? margin, Matrix4? transform, AlignmentGeometry? transformAlignment, Clip clipBehavior = Clip.none}) → Container - To make any widget into Container with all other member of Container
-
toSizedBox(
{Key? key, double? width, double? height}) → SizedBox - To make any widget into SizedBox with all other member of SizedBox
-
underline(
{double thickness = 1, double gapWithText = 2, Color color = Colors.black, bool isCenter = false}) → Widget - For make Single Underline