Make MultiChildRenderObjectWidget const (#119195)

This commit is contained in:
Michael Goderbauer
2023-01-31 11:13:59 -08:00
committed by GitHub
parent 9b3b9cf089
commit 6a5405925d
37 changed files with 415 additions and 417 deletions

View File

@@ -55,8 +55,8 @@ class PlatformViewLayout extends StatelessWidget {
child: Material(
elevation: (index % 5 + 1).toDouble(),
color: Colors.white,
child: Stack(
children: const <Widget> [
child: const Stack(
children: <Widget> [
DummyPlatformView(),
RotationContainer(),
],

View File

@@ -59,8 +59,8 @@ class PlatformViewLayout extends StatelessWidget {
child: Material(
elevation: (index % 5 + 1).toDouble(),
color: Colors.white,
child: Stack(
children: const <Widget> [
child: const Stack(
children: <Widget> [
DummyPlatformView(),
RotationContainer(),
],

View File

@@ -77,9 +77,9 @@ class _PopupControlsPageState extends State<PopupControlsPage> {
return AlertDialog(
key: const ValueKey<String>(alertKeyValue),
title: const Text('Title text', key: ValueKey<String>('$alertKeyValue.Title')),
content: SingleChildScrollView(
content: const SingleChildScrollView(
child: ListBody(
children: const <Widget>[
children: <Widget>[
Text('Body text line 1.', key: ValueKey<String>('$alertKeyValue.Body1')),
Text('Body text line 2.', key: ValueKey<String>('$alertKeyValue.Body2')),
],