mixins library

Classes

Bidi
This provides utility methods for working with bidirectional text. All of the methods are static, and are organized into a class primarily to group them together for documentation and discoverability.
BidiFormatter
Bidi stands for Bi-directional text. According to Wikipedia: Bi-directional text is text containing text in both text directionalities, both right-to-left (RTL) and left-to-right (LTR). It generally involves text containing different types of alphabets, but may also refer to boustrophedon, which is changing text directionality in each row.
BounceScroll
shortcut of BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics());
Br
Caa
CenterDialog
CenterDialog( // use it on showDialog child: // your widget )
Chain
A chain of stack traces.
Col
shortcut of Column with mainAxisAlignment: MainAxisAlignment.start
DateFormat
DateFormat is for formatting and parsing dates in a locale-sensitive manner.
Ei
Forms
Frame
A single stack frame. Each frame points to a precise location in Dart code.
Fw
Iconr
combination betweeen Icon and Container
InkW
custom widget of InkWell
Intl
The Intl class provides a common entry point for internationalization related tasks. An Intl instance can be created for a particular locale and used to create a date format via anIntl.date(). Static methods on this class are also used in message formatting.
Intrinsic
short hand of IntrinsicHeight widget
Lipsum
LowerCaseTextFormatter
Maa
Mas
MicroMoney
Used primarily for currency formatting, this number-like class stores millionths of a currency unit, typically as an Int64.
Mixins
MixinsFormatter
Mv
// MAP VALIDATOR // It is used to validate the data of a Map<String, dynamic> // All input is required Mv input = await Mv.validate(map, 'required.all'); // All input is required except phone and address Mv input = await Mv.validate(map, 'required.all|phone,address'); // Set rule to specific input Mv input = await Mv.validate(map, { 'name': 'required', 'email': 'required|email', 'phone': 'required|numeric|min:10|max:15', }); // check result bool ok = input.ok; String? error = input.error; Map<String, dynamic> result = input.result; // details
None
Shortcut of SizedBox.shrink()
NoScrollGlow
NumberFormat
Provides the ability to format a number in a locale-specific way.
Shimmer
A widget renders shimmer effect over child widget tree.
Skeleton
Skeleton(size: 15); // width and height is 15 Skeleton(size: [50, 15]); // width is 50, height is 15 Skeleton(size: [[15, 50], 15]); // width is (min: 15, max: 50), height is 15 Skeleton(size: [[15, 50], [5, 15]]); // width is (min: 15, max: 50), height is (min: 5, max: 15)
SlideDown
SlideLeft
SlideRight
SlideUp
Ta
TextDirection
Represents directionality of text.
Textr
combination betweeen Text and Container
ThousandFormatter
Tit
Tof
Touch
// short hand to use GestureDetector with translucent behavior Touch( onTap: () {}, child: //...your widget, )
Trace
A stack trace, comprised of a list of stack frames.
UcwordsFormatter
UnparsedFrame
A frame that failed to parse.
UpperCaseTextFormatter
Wa
Wca
Wrapper
// Wrapper is used for remove all focus from TextField when screen touched Wrapper(child: Scaffold())
ZoomIn

Enums

ShimmerDirection
An enum defines all supported directions of shimmer effect
StorageDirectory
Corresponds to constants defined in Androids android.os.Environment class.

Properties

disablePathProviderPlatformOverride bool
no getter
words List<String>
getter/setter pair

Functions

getApplicationCacheDirectory() Future<Directory>
Path to a directory where the application may place application-specific cache files.
getApplicationDocumentsDirectory() Future<Directory>
Path to a directory where the application may place data that is user-generated, or that cannot otherwise be recreated by your application.
getApplicationSupportDirectory() Future<Directory>
Path to a directory where the application may place application support files.
getDownloadsDirectory() Future<Directory?>
Path to the directory where downloaded files can be stored.
getExternalCacheDirectories() Future<List<Directory>?>
Paths to directories where application specific cache data can be stored externally.
getExternalStorageDirectories({StorageDirectory? type}) Future<List<Directory>?>
Paths to directories where application specific data can be stored externally.
getExternalStorageDirectory() Future<Directory?>
Path to a directory where the application may access top level storage.
getLibraryDirectory() Future<Directory>
Path to the directory where application can store files that are persistent, backed up, and not visible to the user, such as sqlite.db.
getTemporaryDirectory() Future<Directory>
Path to the temporary directory on the device that is not backed up and is suitable for storing caches of downloaded files.
logg(dynamic value, {String color = 'y', int limit = 500, String? name}) → dynamic
logg('lorem ipsum', color: 'r'); // available colors: yellow (y), blue (b), green (g), red (r), purple (p), cyan (c) and bright blue (bb)
toBeginningOfSentenceCase(String? input, [String? locale]) String?
Convert a string to beginning of sentence case, in a way appropriate to the locale.

Typedefs

ChainHandler = void Function(dynamic error, Chain chain)
A function that handles errors in the zone wrapped by Chain.capture.

Exceptions / Errors

MissingPlatformDirectoryException
An exception thrown when a directory that should always be available on the current platform cannot be obtained.