skip to Main Content

I have the source code of a Flutter project that has imported the following packages:

import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:dio/dio.dart';
import 'package:http/http.dart' as http;
import 'package:shared_preferences/shared_preferences.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:image_picker/image_picker.dart';

What extensions are these packages related to?

2

Answers


  1. Okay since its small lib lists let me tell you import ‘package:flutter_localizations/flutter_localizations.dart’; /// used for language translation
    import ‘package:dio/dio.dart’; for network call
    import ‘package:http/http.dart’ as http; for network call
    import ‘package:shared_preferences/shared_preferences.dart’; /// local storage or local database
    import ‘package:flutter_secure_storage/flutter_secure_storage.dart’; /// more secure flutter storage for storing tokens….
    import ‘package:image_picker/image_picker.dart’; /// just for picking images from device

    Login or Signup to reply.
  2. You can find all the packages used by a Flutter project in the pubspec.yaml file under the dependencies section in the file, the pubspec is found at the root of the Flutter project. There you will see the versions specified as well.

    For finding more information on a specific package and what it is used for see pub.dev, the site contains the documentation of the packages. pub.dev is where public Flutter packages normally are hosted.

    In the case for flutter_localization: https://pub.dev/packages/flutter_localization

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search