Removed ListTile accentColor dependency (#77004)
This commit is contained in:
@@ -64,7 +64,7 @@ class StocksAppState extends State<StocksApp> {
|
||||
case StockMode.pessimistic:
|
||||
return ThemeData(
|
||||
brightness: Brightness.dark,
|
||||
accentColor: Colors.redAccent,
|
||||
primarySwatch: Colors.purple,
|
||||
);
|
||||
}
|
||||
assert(_configuration.stockMode != null);
|
||||
|
||||
@@ -83,7 +83,7 @@ void main() {
|
||||
await tester.pump(const Duration(seconds: 5)); // end the transition
|
||||
|
||||
// check the color of the icon - dark mode
|
||||
checkIconColor(tester, 'Stock List', Colors.redAccent); // theme accent color
|
||||
checkIconColor(tester, 'Stock List', Colors.purple); // theme primary color
|
||||
checkIconColor(tester, 'Account Balance', Colors.white38); // disabled
|
||||
checkIconColor(tester, 'About', Colors.white); // enabled
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user