/// The [Widget] to be used as the content of the main layout, not the card contentfinalWidget child;
/// The [Widget] to be used as the content of the floating cardfinalWidget body;
/// Set a custom [height] for the floating card,/// defaults to `86%` of total height of parent container or screen height if no finite height can be assumedfinaldouble height;
/// Set a custom [width] for the floating card,/// defaults to `100%` of total width of parent container or screen width if no finite width can be assumedfinaldouble width;
/// Set a [cardElevation] for the material,/// defaults to `4`finaldouble cardElevation;
/// If true , the card can be dragged until it's hidden from screen/// defaults to [false]finalbool dismissable;
/// Sets the [state] of the floating card,/// See enum [FloatingPullUpState] for more details/// Defaults to [FloatingPullUpState.collapsed]finalFloatingPullUpState state;
/// Set a custom card [color] to the card background/// defaults to [Colors.white]////// This doesnt take any effect if using [cardBuilder] is definedfinalColor cardColor;
/// Called each time the [FloatingPullUpState] is changedfinalValueChanged<FloatingPullUpState> onStateChange;
/// Defines a custom [dragHandleBuilder]finalDragHandleBuilder dragHandleBuilder;
/// Defines a custom [cardBuilder]finalFloatingCardBuilder cardBuilder;
/// Set a custom [borderRadius] of the default Card material////// This doesnt take any effect if using [cardBuilder] is definedfinalBorderRadius borderRadius;
/// if true , this automatically adds padding to the [child] container,/// avoiding the card to float on top of [child] content/// defaults to [true]final autoPadding;
/// Sets a custom function that return a custom `Y Offset` for state [FloatingPullUpState.collapsed]/// Please take into account that offset start from top to bottomStateOffsetFunction collpsedStateOffset;
/// Sets a custom function that return a custom `Y Offset` for state [FloatingPullUpState.hidden]/// Please take into account that offset start from top to bottomStateOffsetFunction hiddenStateOffset;
/// Sets a custom function that return a custom `Y Offset` for state [FloatingPullUpState.uncollapsed]/// Please take into account that offset start from top to bottomStateOffsetFunction uncollpsedStateOffset;
/// Defines a callback to be called when a user taps outside the card/// If function returns [FloatingPullUpState] it will change state to the returned one/// Take into account that this is not getting called if a widget inside body is already handling a `Gesture`finalFloatingPullUpStateFunction() onOutsideTap;
/// If true, this will show an overlay behind the card tht obscures content behind/// Defaults to[false]finalbool withOverlay;
/// Defines the `color` of the overlay , this only takes effect of [withOverlayOption] is truefinalColor overlayColor;
More Screenshots
Getting Started
This project is a starting point for a Dart
package,
a library module containing code that can be shared easily across
multiple Flutter or Dart projects.
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.