components/components library

Classes

Badge
This widget allows you to add badges to any of your Widget.
BadgePosition
Utility class. Don't try to use it!
BadgePositioned
Utility class. Don't try to use it!
BadgeState
BottomSheetAction
The Actions model that will use on the ActionSheet.
CancelAction
The cancel actions model that show under the BottomSheetAction (grouped separately on iOS).
CarouselController
CarouselControllerImpl
CarouselOptions
CarouselSlider
CarouselSliderState
CarouselState
CircularPercentIndicator
DottedBorder
Add a dotted border around any child widget. The strokeWidth property defines the width of the dashed border and color determines the stroke paint color. CircularIntervalList is populated with the dashPattern to render the appropriate pattern. The radius property is taken into account only if the borderType is BorderType.RRect. A customPath can be passed in as a parameter if you want to draw a custom shaped border.
DottedLine
LinearPercentIndicator
RadarChart
RadarChartPainter
RatingBar
A widget to receive rating input from users.
RatingBarIndicator
A widget to display rating as assigned using rating property.
RatingWidget
Defines widgets which are to used as rating bar items.
TabBarViewModel

Enums

ArcType
BadgeAnimationType
This is a set of animations that you can use for your Badge widget.
BadgeShape
This is a set of shapes that you can use for your Badge widget.
BorderType
The different supported BorderTypes
CarouselPageChangedReason
CenterPageEnlargeStrategy
CircularStrokeCap

Constants

defaultGraphColors → const List<MaterialColor>

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, Color? fillColor, 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? 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

Typedefs

ExtendedIndexedWidgetBuilder = Widget Function(BuildContext context, int index, int realIndex)
PathBuilder = Path Function(Size)