infinite_cards 1.0.3 copy "infinite_cards: ^1.0.3" to clipboard
infinite_cards: ^1.0.3 copied to clipboard

An infinite card switching UI for Flutter, support custom animation

InfiniteCards #

License

An infinite card switching UI for Flutter, support custom animation 可自定义动效的卡片切换视图(中文文档

Android version #

https://github.com/BakerJQ/Android-InfiniteCards

Screenshot #

Android iOS

Example #

cd ./example
flutter create .
flutter run
copied to clipboard

How to use #

Add dependencies #

dependencies:
  infinite_cards: ^1.0.3
copied to clipboard

Build controller in initState #

@override
  void initState() {
    super.initState();
    _controller = InfiniteCardsController(
      itemBuilder: _renderItem,
      itemCount: 5,
      animType: AnimType.SWITCH,
    );
  }
copied to clipboard

Build widget with controller #

InfiniteCards(
  controller: _controller,
)
copied to clipboard

Call methods from controller #

  _controller.previous();
  _controller.next();
  _controller.reset(...);
copied to clipboard

Animation transform and curve #

Default

If you just use all default animations, just do nothing.

Customisation

InfiniteCardsController(
            ...
            transformToFront: yourCustomTransformToFront,
            transformToBack: yourCustomTransformToBack,
            curve: yourCustomCurve
            ...
          )
copied to clipboard

License #

InfiniteCards is released under the Apache 2.0 license.

Copyright 2019 BakerJ.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at following link.

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
copied to clipboard
31
likes
40
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.25 - 2025.04.09

An infinite card switching UI for Flutter, support custom animation

Repository (GitHub)

License

Apache-2.0 (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on infinite_cards