djangoflow / list_bloc Goto Github PK
View Code? Open in Web Editor NEWBLoC management of simple, filtered, sorted and paged lists.
BLoC management of simple, filtered, sorted and paged lists.
We have widgets in flutter_list_bloc that works with list_bloc.
Create unit tests for list_bloc and flutter_list_bloc packages.
This issue is related to #2 and tracks the progress on implementing unit tests for the list_bloc
package.
A minimum of 100% test coverage is required.
Create an example app for flutter_list_bloc package. It should demonstrate the usage of all the widgets available in flutter_list_bloc. Please provide in-code documentation of each widget and when to use the widget.
Goals:
Please create a PR for review when done. Keep the commit history clean, and use atomic commit pushes.
Resources
Currently reloading takes the current state's filter
Code Link
Future<void> reload([F? filter]) => super.load(filter);
// in data_cubit.dart
Future<void> load([F? filter]) async {
final f = filter ?? state.filter;
// etc...
If the user scrolls to the last item, then after reaching the last item the ContinuousScrollBuilder will take the total item's length as the current offset and try to fetch items. As of this moment, the filter's offset value becomes the length of the items.
Code Link
final offset = _cubit.state.data?.length ?? 0;
Then if we reload the list the cubit will return 0 items and the previously loaded items will vanish due to the wrong offset value.(This offset value is the last items offset after that no items are available to fetch)
The primary goal of this library was to create a simple abstraction layer between an open API client automatically generated by https://openapi-generator.tech/docs/generators/dart-dio/ and the UI layer using BLOC architecture.
We do this internally at our company, and it would be great to have an example of how to use this library with a standard Pet Store example from
We should create an example of using ListBloc
and PaginatedBloc
using dart-dio
api generated with https://openapi-generator.tech/
In the example we should show how to generate https://openapi-generator.tech/docs/generators/dart-dio client from the Pt Store example swagger.yaml then we should create a DataRepository and PagedRepository based on that client and finally show how to use it in a simple Flutter application that would display the pets from the Pet Store using this library.
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.