Skip to content

[iOS] Flutter 2.8, fine frame drop detected in native listview on iOS. #95838

@idompolo

Description

@idompolo

Flutter 2.8, fine frame drop detected in native listview on iOS.

This is normal in flutter 2.5.

Create a listview with about 200 items.. If you scroll slowly and smoothly at a constant speed, you may find it stuttering.

2.5 example url : https://drive.google.com/file/d/1v9q2T6m_haEdvbV416rC9bhObAZ4HHFy/view?usp=sharing
2.8 example url : https://drive.google.com/file/d/1_1Xq7Fw03AaSKGQ3DA6OIQjKYQN7mR9i/view?usp=sharing

sample code
import 'package:flutter/material.dart';

void main() {
  runApp(const App());
}

class App extends StatefulWidget {
  const App({Key? key}) : super(key: key);

  @override
  _AppState createState() => _AppState();
}

class _AppState extends State<App> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text("Flutter 2.8 Test")),
        body: ListView.separated(
          separatorBuilder: (_, __) => const Divider(),
          itemCount: 200,
          itemBuilder: (context, index) {
            return ListTile(
              key: ValueKey(index),
              title: Text("item $index"),
            );
          },
        ),
      ),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)c: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.f: scrollingViewports, list views, slivers, etc.found in release: 2.8Found to occur in 2.8found in release: 2.9Found to occur in 2.9frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onperf: speedPerformance issues related to (mostly rendering) speedplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions