1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

[linting_tool] Prepare for release (#880)

This commit is contained in:
Abdullah Deshmukh
2021-08-23 16:26:55 -07:00
committed by GitHub
parent 0aad30fc5b
commit 410e43fbc1
22 changed files with 117 additions and 47 deletions

View File

@@ -30,19 +30,19 @@ class SavedLintsPage extends StatelessWidget {
? 60.0
: isDesktop
? 120.0
: 4.0;
: 16.0;
final endPadding = isTablet
? 60.0
: isDesktop
? 120.0
: 4.0;
: 16.0;
return ListView.separated(
padding: EdgeInsetsDirectional.only(
start: startPadding,
end: endPadding,
top: isDesktop ? 28 : 0,
bottom: isDesktop ? kToolbarHeight : 0,
top: isDesktop ? 28 : 16,
bottom: isDesktop ? kToolbarHeight : 16,
),
itemCount: profilesStore.savedProfiles.length,
cacheExtent: 5,
@@ -74,8 +74,9 @@ class SavedLintsPage extends StatelessWidget {
context,
MaterialPageRoute(
builder: (context) => ChangeNotifierProvider(
create: (context) =>
EditingController(isEditing: true),
create: (context) => EditingController(
isEditing: true,
),
child: RulesPage(selectedProfileIndex: index),
),
),