@@ -5338,11 +5338,40 @@ void main() {
5338
5338
gapPadding: 32.0 ,
5339
5339
));
5340
5340
expect (outlineInputBorder, isNot (const OutlineInputBorder ()));
5341
+ expect (outlineInputBorder, isNot (const OutlineInputBorder (
5342
+ borderSide: BorderSide (color: Colors .red),
5343
+ borderRadius: BorderRadius .all (Radius .circular (9.0 )),
5344
+ gapPadding: 32.0 ,
5345
+ )));
5346
+ expect (outlineInputBorder, isNot (const OutlineInputBorder (
5347
+ borderSide: BorderSide (color: Colors .blue),
5348
+ borderRadius: BorderRadius .all (Radius .circular (10.0 )),
5349
+ gapPadding: 32.0 ,
5350
+ )));
5351
+ expect (outlineInputBorder, isNot (const OutlineInputBorder (
5352
+ borderSide: BorderSide (color: Colors .blue),
5353
+ borderRadius: BorderRadius .all (Radius .circular (9.0 )),
5354
+ gapPadding: 33.0 ,
5355
+ )));
5341
5356
5342
- // UnderlineInputBorder's equality is defined only by the borderSide
5343
- const UnderlineInputBorder underlineInputBorder = UnderlineInputBorder (borderSide: BorderSide (color: Colors .blue));
5344
- expect (underlineInputBorder, const UnderlineInputBorder (borderSide: BorderSide (color: Colors .blue)));
5357
+ // UnderlineInputBorder's equality is defined by the borderSide and borderRadius
5358
+ const UnderlineInputBorder underlineInputBorder = UnderlineInputBorder (
5359
+ borderSide: BorderSide (color: Colors .blue),
5360
+ borderRadius: BorderRadius .only (topLeft: Radius .circular (5.0 ), topRight: Radius .circular (5.0 )),
5361
+ );
5362
+ expect (underlineInputBorder, const UnderlineInputBorder (
5363
+ borderSide: BorderSide (color: Colors .blue),
5364
+ borderRadius: BorderRadius .only (topLeft: Radius .circular (5.0 ), topRight: Radius .circular (5.0 )),
5365
+ ));
5345
5366
expect (underlineInputBorder, isNot (const UnderlineInputBorder ()));
5367
+ expect (underlineInputBorder, isNot (const UnderlineInputBorder (
5368
+ borderSide: BorderSide (color: Colors .red),
5369
+ borderRadius: BorderRadius .only (topLeft: Radius .circular (5.0 ), topRight: Radius .circular (5.0 )),
5370
+ )));
5371
+ expect (underlineInputBorder, isNot (const UnderlineInputBorder (
5372
+ borderSide: BorderSide (color: Colors .blue),
5373
+ borderRadius: BorderRadius .only (topLeft: Radius .circular (6.0 ), topRight: Radius .circular (6.0 )),
5374
+ )));
5346
5375
});
5347
5376
5348
5377
test ('InputBorder hashCodes' , () {
@@ -5358,11 +5387,39 @@ void main() {
5358
5387
gapPadding: 32.0 ,
5359
5388
).hashCode);
5360
5389
expect (outlineInputBorder.hashCode, isNot (const OutlineInputBorder ().hashCode));
5390
+ expect (outlineInputBorder.hashCode, isNot (const OutlineInputBorder (
5391
+ borderRadius: BorderRadius .all (Radius .circular (9.0 )),
5392
+ borderSide: BorderSide (color: Colors .red),
5393
+ gapPadding: 32.0 ,
5394
+ ).hashCode));
5395
+ expect (outlineInputBorder.hashCode, isNot (const OutlineInputBorder (
5396
+ borderRadius: BorderRadius .all (Radius .circular (10.0 )),
5397
+ borderSide: BorderSide (color: Colors .blue),
5398
+ gapPadding: 32.0 ,
5399
+ ).hashCode));
5400
+ expect (outlineInputBorder.hashCode, isNot (const OutlineInputBorder (
5401
+ borderRadius: BorderRadius .all (Radius .circular (9.0 )),
5402
+ borderSide: BorderSide (color: Colors .blue),
5403
+ gapPadding: 33.0 ,
5404
+ ).hashCode));
5361
5405
5362
- // UnderlineInputBorder's hashCode is defined only by the borderSide
5363
- const UnderlineInputBorder underlineInputBorder = UnderlineInputBorder (borderSide: BorderSide (color: Colors .blue));
5364
- expect (underlineInputBorder.hashCode, const UnderlineInputBorder (borderSide: BorderSide (color: Colors .blue)).hashCode);
5365
- expect (underlineInputBorder.hashCode, isNot (const UnderlineInputBorder ().hashCode));
5406
+ // UnderlineInputBorder's hashCode is defined by the borderSide and borderRadius
5407
+ const UnderlineInputBorder underlineInputBorder = UnderlineInputBorder (
5408
+ borderSide: BorderSide (color: Colors .blue),
5409
+ borderRadius: BorderRadius .only (topLeft: Radius .circular (5.0 ), topRight: Radius .circular (5.0 )),
5410
+ );
5411
+ expect (underlineInputBorder.hashCode, const UnderlineInputBorder (
5412
+ borderSide: BorderSide (color: Colors .blue),
5413
+ borderRadius: BorderRadius .only (topLeft: Radius .circular (5.0 ), topRight: Radius .circular (5.0 )),
5414
+ ).hashCode);
5415
+ expect (underlineInputBorder.hashCode, isNot (const UnderlineInputBorder (
5416
+ borderSide: BorderSide (color: Colors .red),
5417
+ borderRadius: BorderRadius .only (topLeft: Radius .circular (5.0 ), topRight: Radius .circular (5.0 )),
5418
+ ).hashCode));
5419
+ expect (underlineInputBorder.hashCode, isNot (const UnderlineInputBorder (
5420
+ borderSide: BorderSide (color: Colors .blue),
5421
+ borderRadius: BorderRadius .only (topLeft: Radius .circular (6.0 ), topRight: Radius .circular (6.0 )),
5422
+ ).hashCode));
5366
5423
});
5367
5424
5368
5425
testWidgets ('InputDecorationTheme implements debugFillDescription' , (WidgetTester tester) async {
0 commit comments