Skip to content

Commit

Permalink
fix: issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicGBauer committed Jan 9, 2025
1 parent abddbac commit c822e8f
Show file tree
Hide file tree
Showing 14 changed files with 63 additions and 51 deletions.
6 changes: 3 additions & 3 deletions demos/benchmarks/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -305,21 +305,21 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.10.0"
version: "1.11.0"
powersync_core:
dependency: "direct overridden"
description:
path: "../../packages/powersync_core"
relative: true
source: path
version: "1.0.0"
version: "1.1.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.4.3"
version: "0.4.4"
pub_semver:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions demos/django-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -318,21 +318,21 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.10.0"
version: "1.11.0"
powersync_core:
dependency: "direct overridden"
description:
path: "../../packages/powersync_core"
relative: true
source: path
version: "1.0.0"
version: "1.1.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.4.3"
version: "0.4.4"
pub_semver:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions demos/firebase-nodejs-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -454,21 +454,21 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.10.0"
version: "1.11.0"
powersync_core:
dependency: "direct overridden"
description:
path: "../../packages/powersync_core"
relative: true
source: path
version: "1.0.0"
version: "1.1.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.4.3"
version: "0.4.4"
pub_semver:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions demos/supabase-anonymous-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -374,21 +374,21 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.10.0"
version: "1.11.0"
powersync_core:
dependency: "direct overridden"
description:
path: "../../packages/powersync_core"
relative: true
source: path
version: "1.0.0"
version: "1.1.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.4.3"
version: "0.4.4"
pub_semver:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions demos/supabase-edge-function-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -398,21 +398,21 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.10.0"
version: "1.11.0"
powersync_core:
dependency: "direct overridden"
description:
path: "../../packages/powersync_core"
relative: true
source: path
version: "1.0.0"
version: "1.1.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.4.3"
version: "0.4.4"
pub_semver:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions demos/supabase-simple-chat/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -414,21 +414,21 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.10.0"
version: "1.11.0"
powersync_core:
dependency: "direct overridden"
description:
path: "../../packages/powersync_core"
relative: true
source: path
version: "1.0.0"
version: "1.1.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.4.3"
version: "0.4.4"
pub_semver:
dependency: transitive
description:
Expand Down
8 changes: 4 additions & 4 deletions demos/supabase-todolist-drift/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -686,28 +686,28 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.10.0"
version: "1.11.0"
powersync_attachments_helper:
dependency: "direct main"
description:
path: "../../packages/powersync_attachments_helper"
relative: true
source: path
version: "0.6.16"
version: "0.6.17"
powersync_core:
dependency: "direct overridden"
description:
path: "../../packages/powersync_core"
relative: true
source: path
version: "1.0.0"
version: "1.1.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.4.3"
version: "0.4.4"
pub_semver:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions demos/supabase-todolist-optional-sync/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -478,21 +478,21 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.10.0"
version: "1.11.0"
powersync_core:
dependency: "direct overridden"
description:
path: "../../packages/powersync_core"
relative: true
source: path
version: "1.0.0"
version: "1.1.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.4.3"
version: "0.4.4"
pub_semver:
dependency: transitive
description:
Expand Down
8 changes: 4 additions & 4 deletions demos/supabase-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -478,28 +478,28 @@ packages:
path: "../../packages/powersync"
relative: true
source: path
version: "1.10.0"
version: "1.11.0"
powersync_attachments_helper:
dependency: "direct main"
description:
path: "../../packages/powersync_attachments_helper"
relative: true
source: path
version: "0.6.16"
version: "0.6.17"
powersync_core:
dependency: "direct overridden"
description:
path: "../../packages/powersync_core"
relative: true
source: path
version: "1.0.0"
version: "1.1.0"
powersync_flutter_libs:
dependency: "direct overridden"
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.4.3"
version: "0.4.4"
pub_semver:
dependency: transitive
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ class _BoardScreenState extends State<BoardScreen> with Service {
onTap: () {
archiveCardsInList(trello.lstbrd[index])
.then((numCardsArchived) {
// ignore: use_build_context_synchronously
StatusAlert.show(context,
duration: const Duration(seconds: 2),
title:
Expand All @@ -380,6 +381,7 @@ class _BoardScreenState extends State<BoardScreen> with Service {
icon: Icons.archive_outlined,
color: brandColor),
maxWidth: 260);
// ignore: use_build_context_synchronously
Navigator.of(context).pop();
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class _InviteMemberState extends State<InviteMember> with Service {
_currentMembers
.addAll(trello.selectedWorkspace.members ?? []);
});
// ignore: use_build_context_synchronously
StatusAlert.show(context,
duration: const Duration(seconds: 3),
title: 'Added Member',
Expand All @@ -82,6 +83,7 @@ class _InviteMemberState extends State<InviteMember> with Service {
icon: Icons.check, color: brandColor),
maxWidth: 260);
} else {
// ignore: use_build_context_synchronously
StatusAlert.show(context,
duration: const Duration(seconds: 3),
title: 'Add Failed',
Expand Down
6 changes: 6 additions & 0 deletions demos/supabase-trello/lib/widgets/thirdparty/boardview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class BoardViewState extends State<BoardView>
duration: const Duration(milliseconds: 400), curve: Curves.ease)
.whenComplete(() {
RenderBox object =
// ignore: use_build_context_synchronously
listStates[tempListIndex!].context.findRenderObject() as RenderBox;
Offset pos = object.localToGlobal(Offset.zero);
leftListX = pos.dx;
Expand Down Expand Up @@ -231,10 +232,12 @@ class BoardViewState extends State<BoardView>
duration: const Duration(milliseconds: 400), curve: Curves.ease)
.whenComplete(() {
RenderBox object =
// ignore: use_build_context_synchronously
listStates[tempListIndex!].context.findRenderObject() as RenderBox;
Offset pos = object.localToGlobal(Offset.zero);
leftListX = pos.dx;
rightListX = pos.dx + object.size.width;
// ignore: use_build_context_synchronously
RenderBox box = listStates[tempListIndex]
.itemStates[tempItemIndex!]
.context
Expand Down Expand Up @@ -271,6 +274,7 @@ class BoardViewState extends State<BoardView>
curve: Curves.ease)
.whenComplete(() {
RenderBox object =
// ignore: use_build_context_synchronously
listStates[tempListIndex!].context.findRenderObject() as RenderBox;
Offset pos = object.localToGlobal(Offset.zero);
leftListX = pos.dx;
Expand Down Expand Up @@ -329,10 +333,12 @@ class BoardViewState extends State<BoardView>
duration: const Duration(milliseconds: 400), curve: Curves.ease)
.whenComplete(() {
RenderBox object =
// ignore: use_build_context_synchronously
listStates[tempListIndex!].context.findRenderObject() as RenderBox;
Offset pos = object.localToGlobal(Offset.zero);
leftListX = pos.dx;
rightListX = pos.dx + object.size.width;
// ignore: use_build_context_synchronously
RenderBox box = listStates[tempListIndex]
.itemStates[tempItemIndex!]
.context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: deprecated_member_use

library vs_scrollbar;

import 'package:flutter/gestures.dart';
Expand Down
Loading

0 comments on commit c822e8f

Please sign in to comment.