flip_panel_plus library
3D flip-panel widgets for Flutter.
- FlipCountdown: a countdown built from flipping digits, with an optional FlipCountdownController for pause, resume and reset.
- FlipCountdownBuilder: the same timing engine with no opinion about how it looks; build any countdown UI from it.
- FlipClockPlus: a flip clock, or a simple flip countdown.
- FlipDigit and FlipNumber: value-driven flipping digits.
- FlipDigitStyle: the look of a digit, with ready-made presets.
- FlipPanelPlus: the underlying flip animation for arbitrary widgets.
Classes
- FlipClockPlus
- A flip clock, or a flip countdown when countdownMode is enabled.
- FlipCountdown
- A countdown rendered with flipping digits.
- FlipCountdownBuilder
- A countdown with no opinion about how it looks.
- FlipCountdownController
- Drives a countdown and notifies listeners once per tick.
- FlipCountdownLabels
- Text shown beside each segment of a FlipCountdown when FlipCountdown.showLabels is enabled.
- FlipDigit
- A single digit that flips whenever value changes.
- FlipDigitStyle
- The look of a single flipping digit.
- FlipNumber
- A whole number rendered as a row of FlipDigits.
-
FlipPanelPlus<
T> - A widget that shows a 3D flip animation between two panels, like the split flap display on a departure board.
Enums
- FlipCountdownStatus
- The lifecycle of a FlipCountdownController.
- FlipDirection
- The direction a FlipPanelPlus rotates when it flips to the next value.
- FlipLabelPosition
- Where the caption sits relative to its digits in a countdown.
Functions
-
defaultDigitBuilder(
{required Color digitColor, required Color backgroundColor, required double digitSize, required double width, required double height, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(0.0)), TextStyle? textStyle}) → DigitBuilder - The default look of a digit: centred text on a rounded, coloured box.
Typedefs
- DigitBuilder = Widget Function(BuildContext context, int digit)
- Builds the visual for a single digit (0-9) of a clock or countdown.
- FlipCountdownWidgetBuilder = Widget Function(BuildContext context, Duration remaining, FlipCountdownStatus status)
- Builds a widget from the current state of a countdown.
- IndexedItemBuilder = Widget Function(BuildContext context, int digit)
- Builds a widget for a given index, used by FlipPanelPlus.builder.
-
StreamItemBuilder<
T> = Widget Function(BuildContext context, T value) - Builds a widget for a value emitted by a Stream, used by FlipPanelPlus.stream.