flutter_screwdriver
library
Classes
-
ClearFocusNavigatorObserver
-
Clears current focus when navigation happens.
-
DirectionalAffinity
-
Represents a widget that allows to place a widget before and after the
child widget which is controlled by affinity in either horizontal or
vertical direction.
-
Provides page route with fade-scale material transition
from animations package.
-
Provides page route with fade-through material transition
from animations package.
-
Gap
-
A widget that adds some space between widgets inside Flex widgets
such as Columns and Rows or scrolling views.
This is alternative to SizedBox inside row/column such that
you don't have to know the main direction of the parent widget.
-
HideKeyboard
-
Hides keyboard on tap outside tap-able widgets.
This should be used as the parent of your MaterialApp. This way, it will
detect any touches outside text fields and other touchable areas and will
close the soft keyboard if open.
Flag hide can be used to toggle this behavior.
e.g.
-
HorizontalAffinity
-
Represents a widget that allows to place a widget before and after the
child widget in horizontal direction which is controlled by affinity.
-
Hoverable
-
A widget that detects mouse hover events and notifies its child.
This widget is useful when you want to change the appearance of a widget
when the mouse hovers over it.
-
PostFrame
-
Provides a widget that runs a callback after the first frame is rendered.
-
Provides page route with shared axis material transition
from animations package.
User
SharedAxisTransitionType.vertical
for (y-axis) page transition.
User SharedAxisTransitionType.horizontal
for (x-axis) page transition.
User SharedAxisTransitionType.scaled
for (z-axis) page transition.
-
TickingInterface
-
A ticking interface that provides methods to control the ticking of the widget.
-
TickingWidget
-
A widget that rebuilds itself at a given interval.
This widget is useful for building widgets that need to be updated at a given interval.
For example, this widget can be used to build clocks, timers, stopwatches, and countdowns.
This widget can be used to build any widget that needs to be updated at a given interval.
Example:
-
VerticalAffinity
-
Represents a widget that allows to place a widget above and below the
child widget in horizontal direction which is controlled by affinity.
Mixins
-
AppLifecycleObserver<T extends StatefulWidget>
-
Allows to observe app lifecycle without any boilerplate code.
It registers a listener to receive lifecycle events and auto disposes it
when the widget is disposed.
-
PostFrameCallbackMixin<T extends StatefulWidget>
-
Provides a mixin that runs a callback after the first frame is rendered.
-
TickingStateMixin<T extends StatefulWidget>
-
A mixin class that provides the ticking functionality to the widget.
This mixin class can be used with the State class to provide the ticking
functionality to the widget.