mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
[VeggieSeasons] Fix dark mode problems (#395)
This commit is contained in:
committed by
GitHub
parent
28742ddeaf
commit
d9c9b3a519
@@ -54,7 +54,7 @@ class _SearchScreenState extends State<SearchScreen> {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||
child: Text(
|
||||
'No veggies matching your search terms were found.',
|
||||
style: Styles.headlineDescription,
|
||||
style: Styles.headlineDescription(CupertinoTheme.of(context)),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -77,20 +77,15 @@ class _SearchScreenState extends State<SearchScreen> {
|
||||
|
||||
return CupertinoTabView(
|
||||
builder: (context) {
|
||||
return DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
color: Styles.scaffoldBackground,
|
||||
),
|
||||
child: SafeArea(
|
||||
bottom: false,
|
||||
child: Column(
|
||||
children: [
|
||||
_createSearchBox(),
|
||||
Expanded(
|
||||
child: _buildSearchResults(model.searchVeggies(terms)),
|
||||
),
|
||||
],
|
||||
),
|
||||
return SafeArea(
|
||||
bottom: false,
|
||||
child: Column(
|
||||
children: [
|
||||
_createSearchBox(),
|
||||
Expanded(
|
||||
child: _buildSearchResults(model.searchVeggies(terms)),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user