1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-12 15:58:32 +00:00

Split CI testing based on flutter channels (#651)

This commit is contained in:
Brett Morgan
2021-01-27 18:42:33 +11:00
committed by GitHub
parent e7d70288d9
commit 9b631a2184
14 changed files with 184 additions and 31 deletions

View File

@@ -23,7 +23,8 @@ class VeggieCategorySettingsScreen extends StatelessWidget {
static Route<void> _routeBuilder(BuildContext context, Object argument) {
return CupertinoPageRoute(
builder: (context) => VeggieCategorySettingsScreen(restorationId: 'category'),
builder: (context) =>
VeggieCategorySettingsScreen(restorationId: 'category'),
title: 'Preferred Categories',
);
}
@@ -136,9 +137,10 @@ class CalorieSettingsScreen extends StatelessWidget {
label: cals.toString(),
icon: SettingsIcon(
icon: Styles.checkIcon,
foregroundColor: snapshot.hasData && snapshot.data == cals
? CupertinoColors.activeBlue
: Styles.transparentColor,
foregroundColor:
snapshot.hasData && snapshot.data == cals
? CupertinoColors.activeBlue
: Styles.transparentColor,
backgroundColor: Styles.transparentColor,
),
onPress: snapshot.hasData
@@ -219,7 +221,8 @@ class SettingsScreen extends StatelessWidget {
restorationId: restorationId,
child: CupertinoPageScaffold(
child: Container(
color: Styles.scaffoldBackground(CupertinoTheme.brightnessOf(context)),
color:
Styles.scaffoldBackground(CupertinoTheme.brightnessOf(context)),
child: CustomScrollView(
restorationId: 'list',
slivers: <Widget>[