skip to Main Content

useEffect or useMemoized in Flutter

If I want to initialize object in hook widget, should I use useEffect or useMemoized? class CreateUserScreen extends HookWidget { late ABC abc; CreateUserScreen({super.key}); @override Widget build(BuildContext context) { useEffect(() { abc = ABC(); return null; }); ... } or…

VIEW QUESTION

After update android studio all old flutter project not run

I get below error when i try to run app Could not open settings generic class cache for settings file '/Users/user/Desktop/Ridham/e_commerce/Desi_Chicken/DesiChiken_Vendor/android/settings.gradle' (/Users/user/.gradle/caches/8.0.2/scripts/df7u4no3ok2toy60b1rh7yy2p). BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 65 Could not…

VIEW QUESTION
Back To Top
Search