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

pull/386/head
Abdullah Deshmukh 5 years ago committed by GitHub
parent f8e3d391f3
commit 3a02748df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,6 +20,7 @@ class MyAdaptingApp extends StatelessWidget {
// Use the green theme for Material widgets.
primarySwatch: Colors.green,
),
darkTheme: ThemeData.dark(),
builder: (context, child) {
return CupertinoTheme(
// Instead of letting Cupertino widgets auto-adapt to the Material

@ -96,7 +96,6 @@ class _NewsTabState extends State<NewsTab> {
title: Text(NewsTab.title),
),
body: Container(
color: Colors.grey[100],
child: ListView.builder(
itemBuilder: _listBuilder,
),
@ -107,11 +106,8 @@ class _NewsTabState extends State<NewsTab> {
Widget _buildIos(BuildContext context) {
return CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(),
child: Container(
color: Colors.grey[100],
child: ListView.builder(
itemBuilder: _listBuilder,
),
child: ListView.builder(
itemBuilder: _listBuilder,
),
);
}

@ -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,

Loading…
Cancel
Save