Repository: flutter
Issue: [web] [canvaskit] Resizing the browser is janky 
Labels: engine,platform-web,c: rendering,e: web_canvaskit,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,found in release: 2.8,team-web,triaged-web

## Steps to Reproduce

1. Run the given sample code. 
2. Resize the window as in the videos below.
3. Observe the behavior
    - To observe the behavior again, simply refresh the page or hot reload if in debug mode. 

Note:  the issue only occurs after the first time that window was fully resized and it doesn't appear again unless the page was refreshed. 

**Actual results:** _(from `--web-renderer=canvaskit` in release mode)_

https://user-images.githubusercontent.com/46427323/144128011-87430890-54bd-42d1-a42d-c167d1325159.mov

Here's an example where there's nothing but a background color:

https://user-images.githubusercontent.com/46427323/144127134-13c0fa89-5a75-4174-91e0-dd7b9e0b7d81.mov

**Expected results:** _(from `--web-renderer=html` in debug mode)_

https://user-images.githubusercontent.com/46427323/144128036-dd6c8460-a5b9-4da2-b2db-e50944e451ae.mov

<details>
<summary>Fully Runnable Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Resizing Web Jank',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        debugShowCheckedModeBanner: false,
        home: const ResizingJank());
  }
}

class ResizingJank extends StatelessWidget {
  const ResizingJank({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.yellow,
      body: ListView(
        children: List.generate(
            10,
            (index) => Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: Container(
                    height: 100,
                    width: 100,
                    color: Colors.blue,
                  ),
                )),
      ),
    );
  }
}
```

</details>

<details>
  <summary>Flutter Doctor</summary>


```console
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.6 20G165 darwin-x64, locale en)
    • Flutter version 2.5.3 at /Users/osaxma/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (7 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/osaxma/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.62.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.28.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.6 20G165 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 96.0.4664.55

! Doctor found issues in 1 category.
```

</details>