skip to Main Content

Error: Required named parameter 'devicePixelRatio' must be provided – Flutter

I build a flutter app but run into error /C:/Users/david.huang/AppData/Local/Pub/Cache/hosted/pub.dev/sync_scroll_library-1.0.1/lib/src/gesture/gesture_state_mixin.dart:6:49: Error: Required named parameter 'devicePixelRatio' must be provided. final PageMetrics _testPageMetrics = PageMetrics( ^ /C:/flutter/packages/flutter/lib/src/widgets/page_view.dart:266:3: Context: Found this candidate, but the arguments don't match. PageMetrics({ ^^^^^^^^^^^ Failed to compile application.…

VIEW QUESTION

Android Studio – Is there a way to avoid memory leak when executing a code that outlive the caller

Hello hope someone can help me. Problem: In code #1. The code inside "onListenerDisconnected" will not finish executing because the coroutine will be cancelled via onDestroy. code #1 @AndroidEntryPoint class NotificationService : NotificationListenerService() { @Inject lateinit var updateIsNotificationServiceActiveUseCase: UpdateIsNotificationServiceActiveUseCase private…

VIEW QUESTION

Android Studio – Infinite loop on try catch java Android Studio

I got stuck on infinite loop when all if statement is true UserRepo class public int update(Users user) throws ExecutionException, InterruptedException { Callable<Integer> updateCallable = new Callable<Integer>() { @Override public Integer call() throws Exception { return sqlite_room_dao.update(user.getId(),user.getUsername(),user.getPassword(),user.getPassword2()); } }; Future<Integer>…

VIEW QUESTION

Android Studio – Android Studio Error: Plugin [id: 'com.android.application', version: '7.4.2', apply: false] was not found in any of the following sources

I keep getting this error in Android Studio Electric Eel // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { id 'com.android.application' version '7.4.2' apply false id 'com.android.library' version '7.4.2' apply false id 'org.jetbrains.kotlin.android'…

VIEW QUESTION
Back To Top
Search