Skip to content

[ios][regression] Visual glitch when scrolling a list in a Scaffold that has a Material and Container as bottomNavigationBar #98739

@xvrh

Description

@xvrh

Steps to Reproduce

  1. Execute flutter run on the below code sample on iOS with Flutter 2.10
  2. Scroll the page and notice the visual glitch with the bottom blue square

I see that with iOS 15.1 on iPhone 11 (real and simulator)

Actual results:

Screen.Recording.2022-02-18.at.10.22.31.mp4
Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(_App());
}

class _App extends StatelessWidget {
  const _App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: ListView(
          children: [
            for (var i = 0; i < 100; i++)
              Padding(
                padding: const EdgeInsets.all(20.0),
                child: Text('abc ' * 20),
              )
          ],
        ),
        bottomNavigationBar: Material(
          child: Transform.translate(
            offset: Offset(0, -20),
            child: Container(
              color: Colors.blue,
              child: SizedBox(
                height: 70,
              ),
            ),
          ),
        ),
      ),
    );
  }
}
Logs
[✓] Flutter (Channel stable, 2.10.1, on macOS 11.6 20G165 darwin-x64, locale
    en-BE)
    • Flutter version 2.10.1 at /Users/xavier/projects/flutter_stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (9 days ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: regressionIt was better in the past than it is nowc: renderingUI glitches reported at the engine/skia or impeller rendering levelengineflutter/engine related. See also e: labels.f: scrollingViewports, list views, slivers, etc.found in release: 2.10Found to occur in 2.10found in release: 2.11Found to occur in 2.11has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-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