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

[platform_design]Fix problems in dark mode (#377)

This commit is contained in:
Abdullah Deshmukh
2020-03-19 23:09:40 +05:30
committed by GitHub
parent f8e3d391f3
commit 3a02748df2
3 changed files with 10 additions and 12 deletions

View File

@@ -222,7 +222,7 @@ class SongPlaceholderTile extends StatelessWidget {
child: Row(
children: [
Container(
color: Colors.grey[400],
color: Theme.of(context).textTheme.body1.color,
width: 130,
),
Padding(
@@ -235,27 +235,27 @@ class SongPlaceholderTile extends StatelessWidget {
Container(
height: 9,
margin: EdgeInsets.only(right: 60),
color: Colors.grey[300],
color: Theme.of(context).textTheme.body1.color,
),
Container(
height: 9,
margin: EdgeInsets.only(right: 20, top: 8),
color: Colors.grey[300],
color: Theme.of(context).textTheme.body1.color,
),
Container(
height: 9,
margin: EdgeInsets.only(right: 40, top: 8),
color: Colors.grey[300],
color: Theme.of(context).textTheme.body1.color,
),
Container(
height: 9,
margin: EdgeInsets.only(right: 80, top: 8),
color: Colors.grey[300],
color: Theme.of(context).textTheme.body1.color,
),
Container(
height: 9,
margin: EdgeInsets.only(right: 50, top: 8),
color: Colors.grey[300],
color: Theme.of(context).textTheme.body1.color,
),
],
),
@@ -325,6 +325,7 @@ void showChoices(BuildContext context, List<String> choices) {
return SizedBox(
height: 250,
child: CupertinoPicker(
backgroundColor: Theme.of(context).canvasColor,
useMagnifier: true,
magnification: 1.1,
itemExtent: 40,