NyStatelessWidget extension
Extensions for StatelessWidget
Methods
-
faderBottom(
int strength, {Color color = Colors.black}) → NyFader -
Available on StatelessWidget, provided by the NyStatelessWidget extension
Make gradient background for the widget. -
faderFrom(
int strength, {Color color = Colors.black, required List< AlignmentGeometry> alignment}) → NyFader -
Available on StatelessWidget, provided by the NyStatelessWidget extension
faderFrom -
faderLeft(
int strength, {Color color = Colors.black}) → NyFader -
Available on StatelessWidget, provided by the NyStatelessWidget extension
Make gradient background for the widget. -
faderRight(
int strength, {Color color = Colors.black}) → NyFader -
Available on StatelessWidget, provided by the NyStatelessWidget extension
Make gradient background for the widget. -
faderTop(
int strength, {Color color = Colors.black}) → NyFader -
Available on StatelessWidget, provided by the NyStatelessWidget extension
Make gradient background for the widget. -
flexible(
{Key? key, int flex = 1, FlexFit fit = FlexFit.loose}) → Flexible -
Available on StatelessWidget, provided by the NyStatelessWidget extension
Make a StatelessWidget Flexible. Example: -
onTap(
dynamic action()) → InkWell -
Available on StatelessWidget, provided by the NyStatelessWidget extension
On tap run a action. -
onTapRoute(
dynamic routeName, {dynamic data, Map< String, dynamic> ? queryParameters, dynamic result, bool removeUntilPredicate(Route route)?, PageTransitionSettings? pageTransitionSettings, PageTransitionType? pageTransitionType, dynamic onPop(dynamic value)?}) → InkWell -
Available on StatelessWidget, provided by the NyStatelessWidget extension
Route to a new page. -
paddingOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Padding -
Available on StatelessWidget, provided by the NyStatelessWidget extension
Add padding to the widget. -
paddingSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Padding -
Available on StatelessWidget, provided by the NyStatelessWidget extension
Add symmetric padding to the widget. -
shadow(
int strength, {Color? color, double? blurRadius, double? spreadRadius, Offset? offset, double? rounded}) → Container -
Available on StatelessWidget, provided by the NyStatelessWidget extension
Add a shadow to the container.