Giter Club home page Giter Club logo

mindinventory / animated_icons Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 11.0 2.83 MB

This package supports an animated icon with some customization. It includes an icon type, animation as well as onTap() parameters through the user to get the values as per the requirements.

Home Page: https://www.mindinventory.com/flutter-app-development.php

License: MIT License

Kotlin 0.40% Ruby 0.74% Swift 3.77% Objective-C 0.12% Dart 66.97% HTML 27.71% CSS 0.28%
animated-icons flutter-animated-icons flutter-icons

animated_icons's People

Contributors

aespatelmi avatar deep-mindinventory avatar hardik-kumbhani avatar manish-mind avatar mi-ghanshyam avatar mohit-chauhan-mi avatar renismind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

animated_icons's Issues

All Tickers must be disposed before calling super.dispose()

Hi,

Thanks for cool library...

My Codes...
`class _SaveButtonIcon extends StatelessWidget {
const _SaveButtonIcon({Key? key}) : super(key: key);

@OverRide
Widget build(BuildContext context) => AnimateIcon(
onTap: () => context.read().save(context),
iconType: context.watch().iconType,
animateIcon: context.watch().icon,
color: Theme.of(context).cardColor);
}`

and this is error:

════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
_AnimateIconState#7a4a2(tickers: tracking 1 ticker) was disposed with an active Ticker.

_AnimateIconState created a Ticker via its TickerProviderStateMixin, but at the time dispose() was called on the mixin, that Ticker was still active. All Tickers must be disposed before calling super.dispose().

Tickers used by AnimationControllers should be disposed by calling dispose() on the AnimationController itself. Otherwise, the ticker will leak.

Size capped

I am using an Animated Icon for a loading screen and the size seems to be capped at some value:
Here:

AnimateIcon(
    key: UniqueKey(),
    onTap: () {},
    iconType: IconType.continueAnimation,
    height: 100,
    width: 100,
    color:Colors.white,
    animateIcon: AnimateIcons.download
)

Increasing the height and width more only adds padding to the icon but it does not make it bigger

(the opposite problem does not show: I can have smaller icons)

Version solving issue

Hi , i'm having the following error:

Because animated_icon 0.0.4 depends on lottie ^1.4.0 and no versions of animated_icon match >0.0.4 <0.1.0, animated_icon ^0.0.4 requires lottie ^1.4.0.
So, because scanos depends on both animated_icon ^0.0.4 and lottie ^2.1.0, version solving failed.
pub get failed (1; So, because scanos depends on both animated_icon ^0.0.4 and lottie ^2.1.0, version solving failed.)

Please look into this. Thank You so much.

Its a feature request

Can you do something like if tap on an Icon then it should stay in that state till I tap it again

For example
If I click on the play icon it should animate into the Stop icon and then it should stay there till I tap again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.