Update the FlutterLogo colors and gradients (#62052)

This commit is contained in:
Michael Goderbauer
2020-07-28 15:06:04 -07:00
committed by GitHub
parent 1b37da4f92
commit 1d5a9ae215
5 changed files with 76 additions and 138 deletions

View File

@@ -20,28 +20,25 @@ class CupertinoSegmentedControlDemo extends StatefulWidget {
class _CupertinoSegmentedControlDemoState extends State<CupertinoSegmentedControlDemo> {
final Map<int, Widget> children = const <int, Widget>{
0: Text('Midnight'),
1: Text('Viridian'),
2: Text('Cerulean'),
0: Text('Small'),
1: Text('Medium'),
2: Text('Large'),
};
final Map<int, Widget> icons = const <int, Widget>{
0: Center(
child: FlutterLogo(
colors: Colors.indigo,
size: 200.0,
size: 100.0,
),
),
1: Center(
child: FlutterLogo(
colors: Colors.teal,
size: 200.0,
),
),
2: Center(
child: FlutterLogo(
colors: Colors.cyan,
size: 200.0,
size: 300.0,
),
),
};