Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DemoScreen extends StatelessWidget {
indicatorPadding: const EdgeInsets.only(bottom: 8),
indicatorSize: TabBarIndicatorSize.label,
tabs: <Widget>[
for (String label in _tabLabels) Tab(text: label),
for (final String label in _tabLabels) Tab(text: label),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class HomeScreen extends StatelessWidget {
color: Colors.black12,
child: ListView(
children: <Widget>[
for (MarkdownDemoWidget demo in _demos) DemoCard(widget: demo),
for (final MarkdownDemoWidget demo in _demos)
DemoCard(widget: demo),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class DropdownMenu<T> extends StatelessWidget {
isDense: true,
value: initialValue,
items: <DropdownMenuItem<T>>[
for (String item in items.keys)
for (final String item in items.keys)
DropdownMenuItem<T>(
value: items[item],
child: Container(
Expand Down
2 changes: 1 addition & 1 deletion packages/go_router_builder/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class PersonScreen extends StatelessWidget {
title: Text(
'${person.name} ${family.name} is ${person.age} years old'),
),
for (MapEntry<PersonDetails, String> entry
for (final MapEntry<PersonDetails, String> entry
in person.details.entries)
ListTile(
title: Text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ class _FeatureCard extends StatelessWidget {
children: <Widget>[
const ListTile(title: Text('Available features')),
const Divider(),
for (BillingClientFeature feature in BillingClientFeature.values)
for (final BillingClientFeature feature
in BillingClientFeature.values)
_buildFeatureWidget(feature),
]));
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web_benchmarks/lib/src/browser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ String _findSystemChromeExecutable() {
} else if (io.Platform.isWindows) {
const String kWindowsExecutable = r'Google\Chrome\Application\chrome.exe';
final List<String> kWindowsPrefixes = <String>[
for (String? item in <String?>[
for (final String? item in <String?>[
io.Platform.environment['LOCALAPPDATA'],
io.Platform.environment['PROGRAMFILES'],
io.Platform.environment['PROGRAMFILES(X86)'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ class WebKitWebViewController extends PlatformWebViewController {
_javaScriptChannelParams.remove(removedJavaScriptChannel);

await Future.wait(<Future<void>>[
for (JavaScriptChannelParams params in _javaScriptChannelParams.values)
for (final JavaScriptChannelParams params
in _javaScriptChannelParams.values)
addJavaScriptChannel(params),
// Zoom is disabled with a WKUserScript, so this adds it back if it was
// removed above.
Expand Down