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
Back To Top
Search