Open takassh opened 2 years ago
@takassh Can you check this issue and see if resembles your case ?
@darshankawar Thank you for reply. I checked it.
If there is enough space for the indicator to move down and for the user to drag down, the indicator should move slowly, as shown in the expected result above. The actual result shows the indicator is following the users drag too closely.
Thanks for the update. I see the same behavior on latest master and stable.
@darshankawar Thank you for checking.
For now, I could fix this bug like the code below (sorry for long). Could I create PR? (I have never create PR for Flutter before)
Steps to Reproduce
flutter run
on the code sampleRefreshIndicator
moves to bottom too fastExpected results:
https://user-images.githubusercontent.com/52235899/144551526-6f36aba0-3b77-4f7c-b9e6-3b4d86a22998.mov
Actual results:
https://user-images.githubusercontent.com/52235899/144551864-0bf33c71-7c2d-48cc-9be1-210ffa184bca.mov
Code sample
```dart import 'package:flutter/material.dart'; import 'package:flutter_pr/costom_nested_scroll%20copy.dart'; import 'package:flutter_pr/narrow_scroll.dart'; import 'package:flutter_pr/nested_scroll.dart'; import 'package:flutter_pr/scroll.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( // This is the theme of your application. // // Try running your application with "flutter run". You'll see the // application has a blue toolbar. Then, without quitting the app, try // changing the primarySwatch below to Colors.green and then invoke // "hot reload" (press "r" in the console where you ran "flutter run", // or simply save your changes to "hot reload" in a Flutter IDE). // Notice that the counter didn't reset back to zero; the application // is not restarted. primarySwatch: Colors.blue, ), home: const HomePage(), ); } } class HomePage extends StatefulWidget { const HomePage({Key? key}) : super(key: key); @override StateThis bug also causes strange movement below
https://user-images.githubusercontent.com/52235899/144552950-6f158b8c-531f-4118-98fb-f99b7d98ab73.mov
I know this bug is caused by too small
ScrollMetrics.viewportDimension