Skip to content

Commit e2b925b

Browse files
committed
Check that selectionHandleColor affects NoDefaultCupertinoThemeData.hashCode
The existing assertion only compared the hash codes of two themes with the same color, so it still passed with selectionHandleColor removed from hashCode.
1 parent a21bafe commit e2b925b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/cupertino_ui/test/theme_test.dart‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ void main() {
237237
red.hashCode,
238238
const NoDefaultCupertinoThemeData(selectionHandleColor: CupertinoColors.systemRed).hashCode,
239239
);
240+
expect(red.hashCode, isNot(blue.hashCode));
240241
});
241242

242243
late Brightness currentBrightness;

0 commit comments

Comments
 (0)