Flutter ListView BLoC pull & refresh

Step by step to add pull-to-refresh to any `ListView` and connect to to the BLoC

This is a continuation for the first post Flutter BLoC & GraphQL I will modify the code in ./lib/screens/home/home_screen.dart to add pull-to-refresh functionality. Make it Stateful Make the HomeScreen class extends StatefulWidget Converting a StatelessWidget to StatefulWidget is just a click away thanks to the Flutter extension for IntelliJ & VSCode. Track the list of posts Create a variable in the _HomeScreenState class to hold the list of posts, List<GetPosts$Query$Post> _posts = [];. [Read More]

Flutter BLoC & GraphQL

Flutter application architecture using BLoC & GraphQL

Application architecture To build a maintainable app you need to start right, here I will describe the structure I used to build e-commerce app. I will talk about the main concepts and why I have chosen this way of building it. The Flutter app This is the simplest step, just run flutter create architecture_app, now open the project in you favourite editor and run it. Add packaged There are few packages to add to the dependencies and dev_dependencies open your . [Read More]