Giter Club home page Giter Club logo

avatars's People

Contributors

eljpsm avatar luckyseven avatar wahdanz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

avatars's Issues

Instgram avatar is blocked after a few requests

Hi , Instagram avatar is blocked after a few requests , I researched it a little and the server sending a log in page , is there any simple solution to that , that doesn't include Login ? and I even tried the log in but accesses token doesn't work , what am I have to do with the cookies ?

Refresh Avatar with new sources when event occurs .

Hi, i would like to reload the avatar with new source after event happens ( TextField - onEditingComplete ) , I tried some stuff and it is not working :
1.
ValueListenableBuilder(
valueListenable: _notifier,
builder: (BuildContext context,
List<AvatarAPI.Source> val, Widget? child) {
return AvatarAPI.Avatar(
sources: val,
);
}),

onEditingComplete: () {
_notifier.value = [
AvatarAPI.GitHubSource(_photoname as String),
AvatarAPI.InstagramSource(_photoname as String)
];
},
and update the _notifier.value when the event happens
2. save the all child in var and use SetState to create new one and reload it ,
all of that didn't work , does the app have any controller or notifier for updated ?
Thanks Idan . (You did a great job with that library )

Fallback Text doesn't work

    return GFListTile(
        avatar: Avatar(
            useCache: true,
            backgroundColor: primaryColor,
            name: "${service_provider.firstname} ${service_provider.lastname}",
            shape: AvatarShape.circle(50),
            sources: [
              NetworkSource(service_provider.avatar),
              GenericSource(NetworkImage(service_provider.avatar))

              //...
            ]),
        titleText: service_provider.firstname,
        subTitleText: service_provider.about_yourself,
        icon: Icon(Icons.favorite));

result:

https://i.ibb.co/bH1pG3Q/222.png

Error at page navigatio

ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: setState() called after dispose(): _AvatarState#118b4(lifecycle state: defunct, not mounted)
This error happens if you call setState() on a State object for a widget that no longer appears in the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error can occur when code calls setState() from a timer or an animation callback.
E/flutter ( 4778): The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callback. Another solution is to check the "mounted" property of this object before calling setState() to ensure the object is still in the tree.
E/flutter ( 4778): This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().

Fix rebuilding issue

The PR #5 that was merged has a bit of an issue. It will always try to rebuild the avatar widget if the ancestor widget requests a rebuild. The effect is clearly visible when using a network image. You would see a flickering effect. This is not a desirable thing, especially when you have large widgets that use the Avatar widget.

Support Web

Currently the project pulls sqflite, this is pretty unexpected.
Could probably work with a datastore that is web capable.

Avatar not being updated after rebuild

Suppose that I update the data given to the Avatar widget at run time(for example, after clicking a button) but the avatar is not updated. For example, if I give it an updated image network URL, the avatar displays the old data. Is there any way to force rebuilding the widget when the input changes?

Default Image

how can I detect default photo of git-hub or insta ?
Thanks Idan .

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.