Skip to main content

animated_tournament_basket 0.1.2 copy "animated_tournament_basket: ^0.1.2" to clipboard
animated_tournament_basket: ^0.1.2 copied to clipboard

Animated single-elimination tournament bracket with connector paths, round transitions, and customizable match slot widgets.

animated_tournament_basket #

Animated single-elimination tournament bracket for Flutter: horizontal round carousel, vertical stack animation, and CustomPainter connector paths. Match cells are your widgets via BracketStage.matchBuilder.

Demo #

[Bracket tabs and round animation]

Run the example for the full recording: cd example && flutter run.
Demo video (MP4)

Install #

dependencies:
  animated_tournament_basket: ^0.1.2

Minimal usage #

import 'package:animated_tournament_basket/animated_tournament_basket.dart';

BracketStage(
  data: bracketData,
  colors: BracketColors.dark,
  focusedRound: round,
  animFrom: animFrom,
  animTo: animTo,
  roundAnimation: roundAnimation,
  onFocusChanged: (i) => setState(() => round = i),
  matchBuilder: (context, match, width) => MyMatchTile(match: match, width: width),
);

Provide BracketData (teams + List<List<MatchNode>> rounds). Layout constants such as kCardHeight and kRoundAnimDuration are exported from the package.

Example #

cd example
flutter run

The example includes round tabs, theme toggle, demo match cards, and mock US/EU team data — not part of the library API.

Layout and animation #

See doc/BRACKET_LAYOUT_AND_ANIMATION.md.

Publishing (maintainers) #

dart pub publish

Dry run: dart pub publish --dry-run.

License #

MIT — see LICENSE.

1
likes
0
points
--
downloads

Publisher

unverified uploader

Animated single-elimination tournament bracket with connector paths, round transitions, and customizable match slot widgets.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_tournament_basket