'ChromeProxyService: Failed to evaluate expression

Often when rendering from a list, I see Flutter throwing the following, from beneath example, see PositionedTilesState:

ChromeProxyService: Failed to evaluate expression 'tiles'. 
ChromeProxyService: Failed to evaluate expression '[     '. 
ChromeProxyService: Failed to evaluate expression 'StatelessColorfulTile'. 
ChromeProxyService: Failed to evaluate expression 'PositionedTilesState'. 

Have you see this, and found a solution?

Example:

import 'package:flutter/material.dart';
import 'package:example/dart/concepts/color/unique_color_generator.dart';

// PositionedTiles
class PositionedTiles extends StatefulWidget {
  final String? title;
  const PositionedTiles({Key? key, required this.title}) : super(key: key);

  @override
  State<StatefulWidget> createState() => PositionedTilesState();
}

// PositionedTilesState
class PositionedTilesState extends State<PositionedTiles> {
  List<Widget> tiles = [
    StatelessColorfulTile(),
    StatelessColorfulTile(),
  ];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Row(children: tiles),
      floatingActionButton: FloatingActionButton(
          child: const Icon(Icons.sentiment_very_satisfied), onPressed: swapTiles),
    );
  }

  swapTiles() {
    setState(() {
      tiles.insert(1, tiles.removeAt(0));
    });
  }
}

// StatelessColorfulTile
class StatelessColorfulTile extends StatelessWidget {
  final Color myColor = UniqueColorGenerator.getColor();

  StatelessColorfulTile({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
        color: myColor, child: const Padding(padding: EdgeInsets.all(70.0)));
  }
}


Solution 1:[1]

Apparently there was an issue between Chrome (above version 100) and Flutter (below version 2.10.5).

How to fix it? Check your flutter version in terminal with flutter --version. If it is below 2.10.5, you can get the most recent Flutter with terminal with flutter upgrade

After upgrading flutter to 3.0.0 all works for me now. I followed this issue github and this answer on SA

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 drpawelo