1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-04 13:56:37 +00:00

Some linting_tool updates and cleanup (#1279)

This commit is contained in:
Parker Lougheed
2022-05-22 23:48:16 -05:00
committed by GitHub
parent 50863c5b63
commit d6296157f4
24 changed files with 187 additions and 196 deletions

View File

@@ -20,8 +20,8 @@ class DefaultLintsPage extends StatelessWidget {
return const CircularProgressIndicator.adaptive();
}
if (rulesStore.defaultProfiles.isNotEmpty) {
var defaultSets = rulesStore.defaultProfiles;
final defaultSets = rulesStore.defaultProfiles;
if (defaultSets.isNotEmpty) {
final isDesktop = isDisplayLarge(context);
final isTablet = isDisplayMedium(context);
final startPadding = isTablet
@@ -45,7 +45,7 @@ class DefaultLintsPage extends StatelessWidget {
cacheExtent: 5,
itemCount: defaultSets.length,
itemBuilder: (context, index) {
var profile = rulesStore.defaultProfiles[index];
final profile = defaultSets[index];
return ListTile(
title: Text(
profile.name,