oodavid / flutterby Goto Github PK
View Code? Open in Web Editor NEWExample Flutter snippets, apps and packages
Home Page: https://www.youtube.com/channel/UCMBdBkoT5Hg-ZVYmrnPOncg
Example Flutter snippets, apps and packages
Home Page: https://www.youtube.com/channel/UCMBdBkoT5Hg-ZVYmrnPOncg
I found a problem in the 002-infinite-loading-pull-to-refresh example:
When I click the "Show Posts" button, and get to the Posts page for the first time, the frames will be rendered continuously, we can check it with the performance overlay. With an emulator, I get 100% cpu load at that time.
When I scroll down to load more elements, the problem will go away.
When I go to the top, and use pull and refresh, the problem comes again.
I tried to analyze the problem with profiling, but could not find the problem.
I use flutter 1.20.3 and dart 2.9.2.
This is a very useful implementation of infinite scrolling and your videos are great, however I found that if there isn't enough data to fill the screen (i.e no need for scrolling) then the loading widget appears at the bottom and never goes away. Is there a way to fix this? This happens, for example if we choose 10 in the following line (in models.dart).
return _getExampleServerData(10).then((postsData)
Thank you for this wonderful example. However, I see a couple of things missing. Having those will give us a more complete picture.
Stream<MyUserModel> userStream => FirebaseAuth
.instance
.onAuthStateChanged
.map((user) => MyUserModel.fromFirebase(user));
String documentPath = 'my/document';
Stream<MyDocumentModel> documentStream = Firestore.instance
.document(documentPath)
.snapshots()
.map((snapshot) => MyDocumentModel.fromFirebase(snapshot));
Can you add code that adds MyUserModel
and MyDocumentModel
?
hi David, great videos thanks very much! Could you possibly add the models used by the provider example + provide a complete / working app via Github (for the provider pattern walk through) ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.