Let’s start

Hi coders. Yes, we can navigate without context easily with simple steps. GetX make it simple as well as reliable.

pubspec.yaml

get: ^3.23.1 

get dependencies using,

flutter pub get

import

import 'package:get/get.dart'; 

Now, just replace your MaterialAppwith GetMaterialApp inside main.dart

void main() {
runApp(GetMaterialApp();
}

Navigate to new screen:

Get.to(NextScreen());

Navigate to new screen with name.

Get.toNamed('/details');

To close snackbars, dialogs, bottomsheets, or anything you would normally close with Navigator.pop(context);

Get.back();

This package helps developers to reduce boilerplates form their code & makes the development faster, i know it will reduces irritation of yours.

That’s why i suggested that !!

Thanks me later.

For Reference go to the link below.

https://pub.dev/packages/get

If you like this article, just give me a Clap

Happy Coding !

Hello all,

Here is the shortcut to download image file from URL. For all those lazy programmers. A Flutter package makes this task simple.

Start

pubspec.yaml

image_downloader: ^0.20.1

get dependencies using,

flutter pub get

import

import 'package:image_downloader/image_downloader.dart';

Add this permission in AndroidManifest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

User this code below, where you…

Akshay Papneja

Flutter || Android Developer Since 2018

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