skip to Main Content

How to fix FlatButton and RaiseButton Error in flutter

Please i don't explicitly use RaiseButton or FlatButton in my code. But i get this error ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-1.20.0/lib/src/platform_button.dart:269:14: Error: The method 'FlatButton' isn't defined for the class 'PlatformButton'. - 'PlatformButton' is from 'package:flutter_platform_widgets/src/platform_button.dart' ('../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-1.20.0/lib/src/platform_button.dart'). Try correcting the name to the name…

VIEW QUESTION

Android Studio – How to solve queryIntentActivities deprecated in API 33

I am getting a strange behavior in Android Studio with API33. In the following code, Intent chooser = Intent.createChooser(sharingIntent, filename); List<ResolveInfo> resInfoList = context.getPackageManager().queryIntentActivities(chooser, android.content.pm.PackageManager.MATCH_DEFAULT_ONLY); I am getting queryIntentActivities(Intent,int) in PackageManager has been deprecated. In the docs, it says: This…

VIEW QUESTION
Back To Top
Search