klisiewicz / flutter-bloc-patterns Goto Github PK
View Code? Open in Web Editor NEWA set of most common BLoC use cases built on top of flutter_bloc library
License: MIT License
A set of most common BLoC use cases built on top of flutter_bloc library
License: MIT License
Hi everyone, I'm playing with the package and I found the necessity to extend a Bloc. While I'm in a detail page I can edit the selected item but by design DetailsEvent is sealed so if I try to extends an event from it and put it in a on instruction it doesn't work. I know I can make another Bloc to handle every other operation but I would love to know if there is any way to do this with the current bloc or if it will be supported!
Thank you.
If we are to use this package in production we would like to be able to have the information about the total number of pages, i.e. the total number of objects in the repository passed from the backend.
Could you please take a look at the PR and tell what you think?
bloc_test: ^5.1.0 is required for bloc: ^4.0.0 and the flutter test
fails on a number of tests after the upgrade
Stream<ViewState> _emitNextPageLoaded(
Page page,
List<T> pageElements,
) async* {
final List<T> allElements = _currentElements + pageElements;
yield Success(
PagedList<T>(allElements, hasReachedMax: page.size > pageElements.length),
);
}
for (T item in source) {
if (!this.contains(item) && hasMore) this.add(item);
}
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.