Inheritance
System.Object
SnackBar
public class SnackBar : StatelessWidget
Constructors
Declaration
public SnackBar(Key key = null, Widget content = null, Color backgroundColor = null, SnackBarAction action = null, TimeSpan? duration = default(TimeSpan? ), Animation<float> animation = null)
Parameters
Fields
Declaration
public readonly SnackBarAction action
Field Value
Declaration
public readonly Animation<float> animation
Field Value
Declaration
public readonly Color backgroundColor
Field Value
content
Declaration
public readonly Widget content
Field Value
Declaration
public readonly TimeSpan duration
Field Value
Type |
Description |
System.TimeSpan |
|
Methods
build(BuildContext)
Declaration
public override Widget build(BuildContext context)
Parameters
Returns
Overrides
Declaration
public static AnimationController createAnimationController(TickerProvider vsync)
Parameters
Returns
Declaration
public SnackBar withAnimation(Animation<float> newAnimation, Key fallbackKey = null)
Parameters
Type |
Name |
Description |
Animation<System.Single> |
newAnimation |
|
Key |
fallbackKey |
|
Returns