Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 03c48da

Browse files
💡 Improve comment of _transparentImage
1 parent 166822e commit 03c48da

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/google_sign_in/google_sign_in/lib/widgets.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class GoogleUserCircleAvatar extends StatelessWidget {
114114
}
115115
}
116116

117-
/// This is an transparent 1x1 gif image
117+
/// This is an transparent 1x1 gif image.
118118
final Uint8List _transparentImage = Uint8List.fromList(
119119
[
120120
0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00, 0x80, 0x00, //

packages/google_sign_in/google_sign_in/test/widgets_test.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ class _MockHttpRequest extends Fake implements HttpClientRequest {
4949
}
5050
}
5151

52-
/// This is an transparent 1x1 gif image
52+
/// Arbitrary valid image returned by the [_MockHttpResponse].
53+
///
54+
/// This is an transparent 1x1 gif image.
55+
/// It doesn't have to match the placeholder used in [GoogleUserCircleAvatar]
5356
final Uint8List _transparentImage = Uint8List.fromList(
5457
[
5558
0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00, 0x80, 0x00, //
@@ -60,7 +63,7 @@ final Uint8List _transparentImage = Uint8List.fromList(
6063
);
6164

6265
/// A mocked [HttpClientResponse] which is empty and has a [statusCode] of 200
63-
/// and returns a 1x1 transparent image.
66+
/// and returns valid image.
6467
class _MockHttpResponse extends Fake implements HttpClientResponse {
6568
final Stream<Uint8List> _delegate =
6669
Stream<Uint8List>.value(_transparentImage);

0 commit comments

Comments
 (0)