Managing different versions is one of the important topics in software development. Normally there can only be one version of flutter at a time and switching between the version takes a little bit longer since it downloads the SDK and libraries from the beginning. Hence If we are working on more than one project with different versions then it becomes a little bit hectic to switch versions between the project. …

Flutter is a cross-platform technology and one of the concern developers has is the different device sizes that the app runs. In fact, there may be more than one size to deal with for a single device. For instance, mobile devices have portrait and landscape orientation while the size of the browser can be varied. The design that worked perfectly on small devices may look worst on large and medium devices. Actually, there is hardly a design that worked perfectly for all the screen sizes. Larger screen sizes obviously have more spaces and can accommodate more components as compared to…

In this article, we’ll be attempting to build an authentication module that can be the base for most of the project. We’ll be using the package flutter_bloc for the state management with the application of dependency injection. Please go through my article on dependency injection if you’re not familiar with implementing dependency injection in a flutter application. Without any further ado, let's get started with our application.

Run the command to create a brand new project:

flutter create auth_module_flutter

Let's remove all the boilerplate code from the main.dart file and replace with the following code.

The code displays 3…

Dependency Injection is a term that is almost familiar to all the developers if you have been working in Java, rails, etc. Let’s go through each step to implement this feature in Flutter using Injector and GetIt packages.

Let’s create a flutter project using the command

flutter create dependency_injection_demo

Now let’s replace the “main.dart” file with the following contents which is listing the quotes by using a listview.

import 'package:flutter/material.dart';void main() {
class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Dependency Injection Demo',
home: MyQuotePage(title: 'Dependency Injection Demo Page'),

Sanjib Maharjan

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store