Remove accentColor et al. from tests (#78449)
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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!,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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(),
|
||||
));
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
));
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user