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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user