Skip to content

Commit c10b01c

Browse files
authored
fix: random errors preventing tests... (#4859)
1 parent bf09937 commit c10b01c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

dashboard/lib/widgets/lattice.dart

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ class LatticeScrollView extends StatelessWidget {
7676
BuildContext context,
7777
ViewportOffset horizontalOffset,
7878
) => NotificationListener<OverscrollNotification>(
79-
onNotification: (notification) =>
80-
notification.metrics.axisDirection != AxisDirection.right &&
81-
notification.metrics.axisDirection != AxisDirection.left,
79+
onNotification:
80+
(notification) =>
81+
notification.metrics.axisDirection !=
82+
AxisDirection.right &&
83+
notification.metrics.axisDirection != AxisDirection.left,
8284
child: Scrollbar(
8385
thumbVisibility: true,
8486
controller: verticalController,
@@ -576,9 +578,10 @@ class _RenderLatticeBody extends RenderBox {
576578
super.attach(owner);
577579
_horizontalOffset.addListener(_handleOffsetChange);
578580
_verticalOffset.addListener(_handleOffsetChange);
579-
_tap = TapGestureRecognizer(debugOwner: this)
580-
..onTapDown = _handleTapDown
581-
..onTapUp = _handleTapUp;
581+
_tap =
582+
TapGestureRecognizer(debugOwner: this)
583+
..onTapDown = _handleTapDown
584+
..onTapUp = _handleTapUp;
582585
for (final child in _childrenByCoordinate.values) {
583586
child.attach(owner);
584587
}
@@ -809,7 +812,7 @@ class _RenderLatticeBody extends RenderBox {
809812
void applyPaintTransform(RenderBox child, Matrix4 transform) {
810813
final childParentData = child.parentData as _LatticeParentData;
811814
final offset = _coordinateToOffset(childParentData.coordinate!)!;
812-
transform.translate(offset.dx, offset.dy);
815+
transform.translateByDouble(offset.dx, offset.dy, 0.0, 1.0);
813816
}
814817

815818
@override

dashboard/lib/widgets/user_sign_in.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class UserSignIn extends StatelessWidget {
3333
if (authService.user != null) {
3434
return PopupMenuButton<_SignInButtonAction>(
3535
offset: const Offset(0, 50),
36-
itemBuilder: (BuildContext context) =>
37-
<PopupMenuEntry<_SignInButtonAction>>[
36+
itemBuilder:
37+
(BuildContext context) => <PopupMenuEntry<_SignInButtonAction>>[
3838
const PopupMenuItem<_SignInButtonAction>(
3939
value: _SignInButtonAction.logout,
4040
child: Text('Log out'),
@@ -86,7 +86,4 @@ class FirebaseUserIdentity implements GoogleIdentity {
8686
@override
8787
// TODO: implement photoUrl
8888
String? get photoUrl => user.photoURL;
89-
90-
@override
91-
String? get serverAuthCode => '';
9289
}

0 commit comments

Comments
 (0)