One problem with (almost all) Android app we build is we request large data which we do not require at a single time as a user only sees a small chunk of data at a time. One way to solve this problem is to listen to the scroll of RecyclerView & load more data when a user reaches the end of RecyclerView. In this approach it was difficult to maintain efficiency, also UI logic & data logic get complicated which makes debugging & testing of the project difficult.
For the rescue here comes a library from Android Paging Library. …
Recently I had to integrate Intercom to web app being built with Flutter. Integration was really easy as I just had to place the script provided by Intercom on index.html(web folder).
Integration was easy and working perfectly. But what if we need to show Intercom chat on some specific screens only? As Flutter web is single page application, it is not possible to executing script based on current page (like multi-page web application).
Implementing infinite scrolling listview (lazy loading/pagination) using ListView.builder on flutter app.
In this article, We are going to demonstrate infinite scrolling listview on flutter app. Lazy loading, endless scrolling, auto pagination are the other terms used to represent same feature. We will be using test API JSONPlaceholder to build simple photo app.
Let’s get started!
First add http package for network calls. More on network calls.
Then create Stateful widget with it’s state and fields required.
Here we are declaring required fields & initializing on initState. We will implement getBody and fetchPhotos method later.
Now we need model of…
This article provides step by step guide to setup Flutter, setup Flutter web project & create simple Flutter web app.
Flutter is Google’s portable UI toolkit for building beautiful, natively-compiled applications for mobile, web, and desktop from a single codebase.
We will install Flutter, install VS Code & required plugins, create a simple Flutter web app which will fetch random developer joke from Chuck Norris Jokes API.
Follow the official guide to install Flutter on your system.
Set up an editor by installing VS Code along with Flutter & Dart plugins.
Verify Flutter installation & editor setup by running the…
This article provides step by step guide to the implemet app under maintenance feature on your android app along with building a control panel to manage maintenance status & maintenance message.
During downtime, if the user is using the application then the user might get a frequent error which creates the frustrating user experience. Here downtime refers to scenarios like some new changes are being deployed, servers are being upgraded, the configuration is being changed, the system is facing some unexpected issues and so on. …
Basic example to make network requests in VueJS using Axios.
First lets create a html file and put following code :
<title>Vue.js | Making API calls using Axios</title>
<body style="text-align: center">
<div style="display: inline-block;margin-top: 100px">
<img src="https://ui-avatars.com/api/?size=128" alt="">
<h1 style="margin-bottom: 0">John Doe</h1>
As we can see its just plain html code with static image,name & email, now we will use Vue to set those info.
To do that, first…
For Flutter there is RefreshIndicator
A widget that supports the Material “swipe to refresh” idiom.
When child of RefreshIndicator is over scrolled , an animated circular progress indicator is displayed & onRefresh callback is called. Callback returns a future, after complete of which UI is updated & refresh indicator disappears.
In this example we will load random user profile using free API RandomUser, which provides random user on each refresh.
First things first , lets create…
Flutter is Google’s mobile app SDK for crafting high-quality native interfaces on iOS and Android in record time.
Recently as i was exploring resources to get started with Flutter, I found this awesome resource :
While scrolling through list, I thought “Learning flutter by creating an app that lists useful resources would be very helpful ”.
When I started project Awesome Flutter, Soon I came across a problem which is easy to handle in Android(for an Android Developer).
Different stages of Network Call : Progress, Error, Retry ….
Developer Android, Flutter