flutter_artkit library

Classes

BottomPadding
A widget that adds bottom padding to its child equal to the value of the device's bottom media query padding. If there is no padding, a default spacing value is used instead.
ClickCounter
A widget that helps count the number of times it is clicked on.
DarkStatusbar
A widget that draws System overlays with a dark color. Intended for screens with a dark background.
Debouncer
FocusAbsorber
A widget that absorbs focus from the active node and hides the keyboard when tapped anywhere within its child widget.
Hoxy
A widget that creates a vertical space of a specific height.
LifecycleObserver
A widget that observes the lifecycle state of the app and invokes callbacks when the app's lifecycle state changes.
LifecycleObserverState
LightStatusbar
A widget that draws System overlays with a light color. Intended for screens with a light background.
MagicalHero
A widget that provides a hero animation for its child with a given tag.
SafeBottom
A widget that adds a bottom padding to its child to ensure the content is not covered by the device's navigation bar.
Woxy
A widget that returns a SizedBox with a specified width.

Extensions

BuildContextX on BuildContext
CustomTextExtension on Text
DateTimeX on DateTime
IntX on int
StringX on String?
TextStyleX on TextStyle
Provides extensions for TextStyle to make it easier to create new TextStyle objects with different properties.
WidgetX on Widget

Constants

artkit → const int

Functions

hideInputAndUnfocus(BuildContext context) Future<void>
Removes the focus from the current node by moving the primary focus to another node and hiding the software keyboard.
platformValue<T>({T? android, T? iOS, T? fuchsia, T? macOS, T? windows, T? linux}) → T?
Returns the value for the currently running platform based on the given platform-specific values.
postFrameCallback(Function fn) → void
Schedule a callback for the end of the current frame.
readableFileSize(int bytes, [int decimals = 2]) String
Returns a human-readable string representation of the given file size in bytes.
trySafe({required Function fn, dynamic onError(Object e, Object s)?, VoidCallback? atLast}) Future<void>
Wraps the given function with a try-catch block, catching any errors that may be thrown and calling the optional onError callback with the error and stack trace. The atLast callback is called regardless of whether the function succeeded or failed.