How manage flutters import in one file.

Gopal Katariya
Feb 11, 2023

--

Create one file name imports.dart, you can give any name you want.

import.dart

export 'package:flutter/material.dart';
export 'package:get/get.dart';

use ‘export’ to export the files or any library

Now, in the different files, you only use these imports.dart file to use these exports.

import ‘imports.dart’;

That’s all you need to do, guys😀.

--

--

Gopal Katariya
Gopal Katariya

Written by Gopal Katariya

AI Engineer | Machine Learning Enthusiast | Transforming Ideas into Intelligent Solutions

No responses yet