TranslateEffectExt extension
Provides a extension method to apply a TranslateEffect to a Widget.
- on
Methods
-
slideIn(
Offset offset, {bool fractional = false}) → Widget - Applies a TranslateEffect to a Widget with a default animation to slide this widget in.
-
slideInFromBottom(
{double? value, bool fractional = false}) → Widget - Applies a TranslateEffect to a Widget with a default animation to slide this widget in from the bottom.
-
slideInFromLeft(
{double? value, bool fractional = false}) → Widget - Applies a TranslateEffect to a Widget with a default animation to slide this widget in from the right.
-
slideInFromRight(
{double? value, bool fractional = false}) → Widget - Applies a TranslateEffect to a Widget with a default animation to slide this widget in from the right.
-
slideInFromTop(
{double? value, bool fractional = false}) → Widget - Applies a TranslateEffect to a Widget with a default animation to slide this widget in from the top.
-
slideOut(
Offset offset, {bool fractional = false}) → Widget - Applies a TranslateEffect to a Widget with a default animation to slide this widget out.
-
slideOutToBottom(
{double? value, bool fractional = false}) → Widget - Applies a TranslateEffect to a Widget with a default animation to slide this widget out to the bottom.
-
slideOutToLeft(
{double? value, bool fractional = false}) → Widget - Applies a TranslateEffect to a Widget with a default animation to slide this widget out to the left.
-
slideOutToRight(
{double? value, bool fractional = false}) → Widget - Applies a TranslateEffect to a Widget with a default animation to slide this widget out to the right.
-
slideOutToTop(
{double? value, bool fractional = false}) → Widget - Applies a TranslateEffect to a Widget with a default animation to slide this widget out to the top.
-
translate(
Offset offset, {bool fractional = false, Offset? from}) → Widget -
Applies a TranslateEffect to a Widget with the given
offset
.fractional
determines whether theoffset
moves the Widget by using its own size as a percentage or by a fixed amount. -
translateX(
double x, {bool fractional = false, double? from}) → Widget -
Applies a TranslateEffect to a Widget only on the x-axis.
fractional
determines whether theoffset
moves the Widget by using its own size as a percentage or by a fixed amount. -
translateXY(
double x, double y, {bool fractional = false, Offset? from}) → Widget -
Applies a TranslateEffect to a Widget with the given
x
andy
values.fractional
determines whether theoffset
moves the Widget by using its own size as a percentage or by a fixed amount. -
translateY(
double y, {bool fractional = false, double? from}) → Widget -
Applies a TranslateEffect to a Widget only on the y-axis.
fractional
determines whether theoffset
moves the Widget by using its own size as a percentage or by a fixed amount.