Coder Social home page Coder Social logo

marcelgarus / implicitly_animated_list Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 6.0 2.09 MB

A Flutter widget that implicitly animates a list whenever it rebuilds with new items.

License: MIT License

Kotlin 3.35% Swift 4.05% Objective-C 0.37% Dart 92.23%

implicitly_animated_list's Introduction

implicitly_animated_list's People

Contributors

elplaso avatar jonaswanke avatar marcelgarus avatar mxzinke avatar stephg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

implicitly_animated_list's Issues

`RangeError` in README example

Putting the example code from README.md in an otherwise empty MaterialPageRoute results in an error:

โ•โ•โ•โ•โ•โ•โ•โ• Exception caught by widgets library โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
The following RangeError was thrown building:
RangeError (index): Invalid value: Valid value range is empty: 0

When the exception was thrown, this was the stack
#0      List.[]  (dart:core-patch/growable_array.dart:149:60)
#1      _ImplicitlyAnimatedListState.build.<anonymous closure>  (package:implicitly_animated_list/implicitly_animated_list.dart:121:52)
#2      SliverAnimatedListState._itemBuilder 
package:flutter/โ€ฆ/widgets/animated_list.dart:983
#3      SliverChildBuilderDelegate.build 
package:flutter/โ€ฆ/widgets/sliver.dart:446
#4      SliverMultiBoxAdaptorElement._build.<anonymous closure> 
package:flutter/โ€ฆ/widgets/sliver.dart:1260
...
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

After hot reloading, the four ListTiles at least show up, but there's still an error:

โ•โ•โ•โ•โ•โ•โ•โ• Exception caught by widgets library โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
RangeError (index): Invalid value: Not in range 0..3, inclusive: 4
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Seems like the first problem is fixed in a fork: https://github.com/Xenomer/implicitly_animated_list/commit/69a0f841fd0d022285e8cf7df4d83cba12687f30

Bug report

Screenshot_1609019998
Even the sample code doesn't work properly, how did you release it? Please check your code.

feat: add a optional separatorBuilder

This awesome library is sadly missing a way of simply adding spacing or other widgets inbetween the lists widgets, like Listviews separatorBuilder argument.

Publish new versions

I did some changes, to solve #1. Would be nice when you publish a new version to the pub.dev platform with:

$ pub publish

I also could create an automated pipeline, if needed.

Removing an item

How can I remove an item? If I just remove it from the List it triggers this error:

โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
The following IndexError was thrown building:
RangeError (index): Index out of range: index must not be negative: -1

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.