Remove accentColor et al. from tests (#78449)

This commit is contained in:
Hans Muller
2021-03-17 13:28:09 -07:00
committed by GitHub
parent 93a5d17a17
commit 7c4c3419ae
7 changed files with 20 additions and 27 deletions

View File

@@ -286,7 +286,7 @@ class StockHomeState extends State<StockHome> {
AppBar buildSearchBar() {
return AppBar(
leading: BackButton(
color: Theme.of(context).accentColor,
color: Theme.of(context).colorScheme.secondary,
),
title: TextField(
controller: _searchQuery,
@@ -310,7 +310,7 @@ class StockHomeState extends State<StockHome> {
return FloatingActionButton(
tooltip: 'Create company',
child: const Icon(Icons.add),
backgroundColor: Theme.of(context).accentColor,
backgroundColor: Theme.of(context).colorScheme.secondary,
onPressed: _handleCreateCompany,
);
}

View File

@@ -437,7 +437,7 @@ class _DiamondFab extends StatelessWidget {
width: 56.0,
height: 56.0,
child: IconTheme.merge(
data: IconThemeData(color: Theme.of(context).accentIconTheme.color),
data: IconThemeData(color: Theme.of(context).colorScheme.secondary),
child: child!,
),
),

View File

@@ -204,13 +204,10 @@ class OverlayGeometryAppState extends State<OverlayGeometryApp> {
}
void main() {
runApp(MaterialApp(
theme: ThemeData(
brightness: Brightness.light,
primarySwatch: Colors.blue,
accentColor: Colors.redAccent,
runApp(
const MaterialApp(
title: 'Cards',
home: OverlayGeometryApp(),
),
title: 'Cards',
home: const OverlayGeometryApp(),
));
);
}

View File

@@ -141,13 +141,10 @@ class PageViewAppState extends State<PageViewApp> {
}
void main() {
runApp(MaterialApp(
title: 'PageView',
theme: ThemeData(
brightness: Brightness.light,
primarySwatch: Colors.blue,
accentColor: Colors.redAccent,
runApp(
const MaterialApp(
title: 'PageView',
home: PageViewApp(),
),
home: const PageViewApp(),
));
);
}