Flutter | Troubleshooting

Migration Dart Plugins

import 'package:flutter/services.dart';
client =createHttpClient();

 

 

import 'package:http/http.dart' as http;
client = new http.Client();

 

 

 

 

Your app is not using AndroidX

GoTo Flutter_Project -> android -> gradle.properties file. Open the gradle.properties file in any Text editor.

Add below lines in this file and Save the file.

android.useAndroidX=true
android.enableJetifier=true

Open your Flutter Project Root directory in Command Prompt or Terminal and execute

flutter clean

Ralph

Website: