components/components
library
Functions
-
centerProgress()
→ Widget
-
-
centerProgressCupertino()
→ Widget
-
-
column({EdgeInsets padding = EdgeInsets.zero, EdgeInsets margin = EdgeInsets.zero, List<Widget> children = const <Widget>[], MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, VerticalDirection verticalDirection = VerticalDirection.down, BoxDecoration? decoration, double? width, double? height, bool isScrollable = false, ScrollPhysics? physics, VoidCallback? onTap, ScrollController? scrollController})
→ Widget
-
-
dashedDivider({double? height})
→ Widget
-
-
defaultTabBar({required List<TabBarViewModel> tabs, required Widget tabBar, double? width, double? height = 500, int initialIndex = 0})
→ Widget
-
-
directionality({required bool rtl, required Widget child})
→ Widget
-
-
divider({double? width, double height = 0.6, Color color = Colors.grey, EdgeInsets? padding})
→ Widget
-
-
getRealIndex(int position, int base, int? length)
→ int
-
Converts an index of a set size to the corresponding index of a collection of another size
as if they were circular.
-
iconTextHorizontal({required Widget leading, required Widget trailing, EdgeInsets margin = EdgeInsets.zero, VoidCallback? onTap, double spaceBetween = 6, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.min})
→ Widget
-
-
iconTextVertical({required Widget leading, required Widget trailing, EdgeInsets margin = EdgeInsets.zero, VoidCallback? onTap, double spaceBetween = 6, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.min})
→ Widget
-
-
image(String source, {Color? color, double? width, double? height, BoxFit fit = BoxFit.contain, Clip clipBehavior = Clip.hardEdge, double borderRadius = 1, EdgeInsets margin = EdgeInsets.zero, String? placeholder, VoidCallback? onTap})
→ Widget
-
-
imageAsset(String asset, {Color? color, double? width, double? height, BoxFit fit = BoxFit.contain, Clip clipBehavior = Clip.hardEdge, double borderRadius = 1, EdgeInsets margin = EdgeInsets.zero, VoidCallback? onTap})
→ Widget
-
-
imageFile(File file, {Color? color, double? width, double? height, BoxFit fit = BoxFit.contain, Clip clipBehavior = Clip.hardEdge, double borderRadius = 1, EdgeInsets margin = EdgeInsets.zero, VoidCallback? onTap})
→ Widget
-
-
imageNetwork(String url, {Color? color, double? width, double? height, BoxFit fit = BoxFit.contain, Clip clipBehavior = Clip.hardEdge, double borderRadius = 1, EdgeInsets margin = EdgeInsets.zero, VoidCallback? onTap, String? placeholder})
→ Widget
-
-
otpTextField({int length = 4, bool autoFocus = false, TextEditingController? controller, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween, String? hintCharacter, void onCompleted(String)?, double borderRadius = 8, PinCodeFieldShape shape = PinCodeFieldShape.box, EdgeInsetsGeometry? fieldOuterPadding, double fieldHeight = 64, double fieldWidth = 60, double borderWidth = 1, Color? fillColor, Color? cursorColor, Color? borderColor})
→ Widget
-
-
plusMinus({required dynamic onChanged(int), int range = 1, int defaultValue = 0, Widget? addWidget, Widget? minusWidget, double spaceBetween = 10, TextStyle? textStyle, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.min})
→ Widget
-
-
radians(num deg)
→ num
-
-
radius({required Widget child, required double radius})
→ Widget
-
-
remainder(int input, int? source)
→ int
-
Returns the remainder of the modulo operation
input
% source
, and adjust it for
negative values.
-
row({EdgeInsets padding = EdgeInsets.zero, EdgeInsets margin = EdgeInsets.zero, List<Widget> children = const <Widget>[], MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, VerticalDirection verticalDirection = VerticalDirection.down, BoxDecoration? decoration, double? width, double? height, bool isScrollable = false, ScrollPhysics? physics, ScrollController? scrollController, VoidCallback? onTap})
→ Widget
-
-
scaffold({required Widget body, Key? key, PreferredSizeWidget? appBar, Widget? drawer, Widget? endDrawer, Widget? floatingActionButton, Widget? bottomNavigationBar, EdgeInsets? padding, Color? color, BoxDecoration? decoration, bool resizeToAvoidBottomInset = false, bool extendBodyBehindAppBar = false, FloatingActionButtonLocation floatingActionButtonLocation = FloatingActionButtonLocation.endFloat, BoxConstraints? constraints, Alignment? alignment})
→ Widget
-
-
showAdaptiveActionSheet<T>({required BuildContext context, required List<BottomSheetAction> actions, Widget? title, CancelAction? cancelAction, Color? barrierColor, Color? bottomSheetColor})
→ Future<T?>
-
A action bottom sheet that adapts to the platform (Android/iOS).
-
textFieldCountry({TextEditingController? controller, String initialIsoCode = "IR", void onChanged(String)?, String hintText = "Phone number", PhoneInputSelectorType selectorType = PhoneInputSelectorType.DIALOG, Color? fillColor, Color borderColor = Colors.grey, double borderRadius = 12, int maxLength = 10})
→ Widget
-