Navigate without using context in flutter/dart.

get: ^3.23.1 
flutter pub get
import 'package:get/get.dart'; 
void main() {
runApp(GetMaterialApp();
}
Get.to(NextScreen());
Get.toNamed('/details');
Get.back();

--

--

--

Flutter || Android Developer Since 2018

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Solution for Embedded YouTube Video Problems on Pure HMS Phones

Reverse engineering obfuscated Android APK

Package visibility in Android 11

Toolbox of the modern Android developer — 2020 — PART 1

LongPressDraggable In Flutter

Android Studio not Showing Preview

Generate Bill of Material (BOM) with maven-publish plugin

Web (View) and UPI

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
Akshay Papneja

Akshay Papneja

Flutter || Android Developer Since 2018

More from Medium

Cross Platform(IOS & Android)

Flutter coding in system

Integrating Cloud Functions in a Flutter application

Mapbox Realtime Navigation- Customize the UI of Navigation in Android-Kotlin PART 2

Firestore Pagination with Realtime Updates — Android

Firestore pagination with realtime updates by Ankur Gupta