How manage flutters import in one file.
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😀.