flutter_flow/flutter_flow_util
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.
-
DateFormat
-
DateFormat is for formatting and parsing dates in a locale-sensitive
manner.
-
FFPlace
-
-
FFUploadedFile
-
-
FlutterFlowDynamicModels<T extends FlutterFlowModel<Widget>>
-
-
FlutterFlowModel<W extends Widget>
-
-
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.
-
LatLng
-
-
MicroMoney
-
Used primarily for currency formatting, this number-like class stores
millionths of a currency unit, typically as an Int64.
-
NumberFormat
-
Provides the ability to format a number in a locale-specific way.
-
NumberParserBase<R>
-
-
PageTransition<T>
-
Page transition class extends PageRouteBuilder
-
TextDirection
-
Represents directionality of text.
-
Transitions
-
-
Uint8List
-
A fixed-length list of 8-bit unsigned integers.
Functions
-
castToType<T>(dynamic value)
→ T?
-
-
colorFromCssString(String color, {Color? defaultColor})
→ Color
-
-
computeGradientAlignmentX(double evaluatedAngle)
→ double
-
-
computeGradientAlignmentY(double evaluatedAngle)
→ double
-
-
createModel<T extends FlutterFlowModel<Widget>>(BuildContext context, T defaultBuilder())
→ T
-
-
dateTimeFormat(String format, DateTime? dateTime, {String? locale})
→ String
-
-
dateTimeFromSecondsSinceEpoch(int seconds)
→ DateTime
-
-
fixStatusBarOniOS16AndBelow(BuildContext context)
→ void
-
-
formatNumber(num? value, {required FormatType formatType, DecimalType? decimalType, String? currency, bool toLowerCase = false, String? format, String? locale})
→ String
-
-
getJsonField(dynamic response, String jsonPath, [bool isForList = false])
→ dynamic
-
-
getWidgetBoundingBox(BuildContext context)
→ Rect?
-
-
isMobileWidth(BuildContext context)
→ bool
-
-
jsonDecode(String source, {Object? reviver(Object? key, Object? value)?})
→ dynamic
-
Parses the string and returns the resulting Json object.
-
jsonEncode(Object? object, {Object? toEncodable(Object? nonEncodable)?})
→ String
-
Converts
object
to a JSON string.
-
launchURL(String url)
→ Future
-
-
max<T extends num>(T a, T b)
→ T
-
Returns the larger of two numbers.
-
min<T extends num>(T a, T b)
→ T
-
Returns the lesser of two numbers.
-
responsiveVisibility({required BuildContext context, bool phone = true, bool tablet = true, bool tabletLandscape = true, bool desktop = true})
→ bool
-
-
roundTo(double value, int decimalPoints)
→ String
-
-
showSnackbar(BuildContext context, String message, {bool loading = false, int duration = 4})
→ void
-
-
toBeginningOfSentenceCase<T extends String?>(T input, [String? locale])
→ T
-
Convert a string to beginning of sentence case, in a way appropriate to the
locale.
-
valueOrDefault<T>(T? value, T defaultValue)
→ T
-
-
wrapWithModel<T extends FlutterFlowModel<Widget>>({required T model, required Widget child, required VoidCallback updateCallback, bool updateOnChange = false})
→ Widget
-