UIUtil class

Constructors

UIUtil()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

buildAndJoinDivider<T>({required List<T> items, required Widget widgetBuilder(T item)}) List<Widget>
buildAndJoinWidgets<T>({required List<T> items, required Widget widgetBuilder(T item), required Widget interleaved, bool startWithInterleaver = true}) List<Widget>
captionStyle(BuildContext context, {Color? foreColor}) TextStyle
captionText(BuildContext context, String text, {String? tooltip}) Widget
clipboardCopyableText(BuildContext context, String text) Widget
halfScreenWidth(BuildContext context) double
inputDialog({required BuildContext context, required String title, String? defaultValue, String okButtonName = 'OK', String hintText = 'Type here'}) Future
joinWidgets(List<Widget> widgets, Widget interleaved) List<Widget>
landscape(BuildContext context) bool
listView<T>(BuildContext context, {required List<T> items, required Widget widgetBuilder(T item), String? msgOnEmpty, String? title, bool addDivider = true, bool startWithDivider = true, double gap = 0, bool shrinkWrap = false}) Widget
networkErrorPage({String? errorMsg, Icon? icon}) Widget
onInkCard({required GestureTapCallback? onTap, required Widget child, double radius = 10}) Widget
portrait(BuildContext context) bool
screenHeight(BuildContext context) double
screenSize(BuildContext context) Size
screenWidth(BuildContext context) double
shorterScreenSize(BuildContext context) double
textOnColor(BuildContext context, {required String text, TextStyle? style, Color? backgroundColor, TextAlign? textAlign}) Widget
whiteContainer() Widget
widgetOnColor(BuildContext context, {required Widget widget, Color? backgroundColor}) Widget