Welcome to FLUF, the package that provides convenience functions to develop your Flutter app. FLUF means Flutter Leveraging User Functions.
theme
: shortcut forTheme.of(context)
textTheme
: shortcut forTheme.of(context).textTheme
colorScheme
: shortcut forTheme.of(context).colorScheme
navigator
: shortcut forNavigator.of(BuildContext)
pop()
: shortcut forNavigator.of(BuildContext).pop()
fadeTo(Widget)
: push and replace current widget with givenWidget
with fade animationnavigateTo(Widget)
: push givenWidget
with slide animation
minusDelta(int)
: color with subtracteddelta
in each of RGB valuesplusDelta(int)
: color with addeddelta
in each of RGB valuesasPressableProperty()
:WidgetStateProperty
with reduced opacity for pressed state
isReady()
: shortcut for snapshot's connection state ==done
and snapshot has dataisLoading()
: shortcut for snapshot's connection state ==waiting
isComplete()
:
let(Function(T))
: invoke lambda passing receiver objectasWidgetStateProperty(Map<WidgetState, T>)
: map object asWidgetStateProperty
toParagraph()
: map todart:ui
Paragraph
async color()
: compute average color (for emojis)
- Container for
Future
-s with ability to dispose them all on demand.
buildLoadingState
buildEmptyState
loadJsonList
compute(Characters)
: compute and cache average color of each emoji from given charactersget(String)
: get given emoji's color, or null
TODO: List prerequisites and provide or point to information on how to start using the package.
TODO: Include short and useful examples for package users. Add longer examples
to /example
folder.
const like = 'sample';
TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.