Skip to content

Commit 6e11ccf

Browse files
committed
2 parents 44dfe3b + cb40814 commit 6e11ccf

File tree

7 files changed

+38
-39
lines changed

7 files changed

+38
-39
lines changed

app/FLUTTER_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.1
1+
3.3.2

app/lib/cubits/settings.dart

+1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ class ButterflySettings with _$ButterflySettings {
213213
'remotes', remotes.map((e) => json.encode(e.toJson())).toList());
214214
await prefs.setString('default_remote', defaultRemote);
215215
await prefs.setBool('native_window_title_bar', nativeWindowTitleBar);
216+
await prefs.setString('sync_mode', syncMode.name);
216217
}
217218

218219
RemoteStorage? getRemote(String identifier) {

app/lib/handlers/hand.dart

+10-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ class HandHandler extends Handler<HandProperty> {
5151
}
5252
}
5353

54-
void submitMove(BuildContext context) {
55-
if (movingElement == null) return;
56-
currentMovePosition = null;
57-
final bloc = context.read<DocumentBloc>();
58-
bloc.add(ElementsCreated([movingElement!.element]));
54+
void submitMove(BuildContext context, [PadElement? element]) {
55+
if (movingElement == null && element == null) return;
56+
final current = (element ?? movingElement?.element)!;
5957
movingElement = null;
58+
final bloc = context.read<DocumentBloc>();
59+
bloc.add(ElementsCreated([current]));
6060
bloc.refresh();
6161
}
6262

@@ -69,7 +69,11 @@ class HandHandler extends Handler<HandProperty> {
6969
final transform = context.read<TransformCubit>().state;
7070
_firstPointer = null;
7171
if (movingElement != null) {
72-
submitMove(context);
72+
submitMove(
73+
context,
74+
movingElement
75+
?.move(transform.localToGlobal(event.localPosition))
76+
?.element);
7377
return;
7478
}
7579
final bloc = context.read<DocumentBloc>();

app/lib/settings/data.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class _DataSettingsPageState extends State<DataSettingsPage> {
4646
child: Column(
4747
crossAxisAlignment: CrossAxisAlignment.stretch,
4848
children: [
49-
if (!kIsWeb || !Platform.isAndroid)
49+
if (!kIsWeb && !Platform.isAndroid)
5050
ListTile(
5151
title: Text(AppLocalizations.of(context)!
5252
.documentDirectory),

app/pubspec.lock

+17-24
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,8 @@ packages:
2222
url: "https://pub.dartlang.org"
2323
source: hosted
2424
version: "4.7.0"
25-
animations:
26-
dependency: "direct main"
27-
description:
28-
name: animations
29-
url: "https://pub.dartlang.org"
30-
source: hosted
31-
version: "2.0.4"
3225
archive:
33-
dependency: "direct main"
26+
dependency: transitive
3427
description:
3528
name: archive
3629
url: "https://pub.dartlang.org"
@@ -84,7 +77,7 @@ packages:
8477
name: build
8578
url: "https://pub.dartlang.org"
8679
source: hosted
87-
version: "2.3.0"
80+
version: "2.3.1"
8881
build_config:
8982
dependency: transitive
9083
description:
@@ -105,21 +98,21 @@ packages:
10598
name: build_resolvers
10699
url: "https://pub.dartlang.org"
107100
source: hosted
108-
version: "2.0.9"
101+
version: "2.0.10"
109102
build_runner:
110103
dependency: "direct dev"
111104
description:
112105
name: build_runner
113106
url: "https://pub.dartlang.org"
114107
source: hosted
115-
version: "2.2.0"
108+
version: "2.2.1"
116109
build_runner_core:
117110
dependency: transitive
118111
description:
119112
name: build_runner_core
120113
url: "https://pub.dartlang.org"
121114
source: hosted
122-
version: "7.2.3"
115+
version: "7.2.4"
123116
built_collection:
124117
dependency: transitive
125118
description:
@@ -210,7 +203,7 @@ packages:
210203
name: code_builder
211204
url: "https://pub.dartlang.org"
212205
source: hosted
213-
version: "4.2.0"
206+
version: "4.3.0"
214207
collection:
215208
dependency: "direct main"
216209
description:
@@ -224,7 +217,7 @@ packages:
224217
name: connectivity_plus
225218
url: "https://pub.dartlang.org"
226219
source: hosted
227-
version: "2.3.6+1"
220+
version: "2.3.7"
228221
connectivity_plus_linux:
229222
dependency: transitive
230223
description:
@@ -273,7 +266,7 @@ packages:
273266
name: cross_file
274267
url: "https://pub.dartlang.org"
275268
source: hosted
276-
version: "0.3.3+1"
269+
version: "0.3.3+2"
277270
crypto:
278271
dependency: transitive
279272
description:
@@ -294,7 +287,7 @@ packages:
294287
name: dart_style
295288
url: "https://pub.dartlang.org"
296289
source: hosted
297-
version: "2.2.3"
290+
version: "2.2.4"
298291
dbus:
299292
dependency: transitive
300293
description:
@@ -343,7 +336,7 @@ packages:
343336
name: file_picker
344337
url: "https://pub.dartlang.org"
345338
source: hosted
346-
version: "5.0.1"
339+
version: "5.1.0"
347340
fixnum:
348341
dependency: transitive
349342
description:
@@ -463,7 +456,7 @@ packages:
463456
name: flutter_svg
464457
url: "https://pub.dartlang.org"
465458
source: hosted
466-
version: "1.1.4"
459+
version: "1.1.5"
467460
flutter_test:
468461
dependency: "direct dev"
469462
description: flutter
@@ -604,7 +597,7 @@ packages:
604597
name: json_serializable
605598
url: "https://pub.dartlang.org"
606599
source: hosted
607-
version: "6.3.1"
600+
version: "6.3.2"
608601
lint:
609602
dependency: transitive
610603
description:
@@ -835,7 +828,7 @@ packages:
835828
name: printing
836829
url: "https://pub.dartlang.org"
837830
source: hosted
838-
version: "5.9.2"
831+
version: "5.9.3"
839832
process:
840833
dependency: transitive
841834
description:
@@ -1029,14 +1022,14 @@ packages:
10291022
name: source_gen
10301023
url: "https://pub.dartlang.org"
10311024
source: hosted
1032-
version: "1.2.2"
1025+
version: "1.2.3"
10331026
source_helper:
10341027
dependency: transitive
10351028
description:
10361029
name: source_helper
10371030
url: "https://pub.dartlang.org"
10381031
source: hosted
1039-
version: "1.3.2"
1032+
version: "1.3.3"
10401033
source_span:
10411034
dependency: transitive
10421035
description:
@@ -1134,7 +1127,7 @@ packages:
11341127
name: url_launcher_android
11351128
url: "https://pub.dartlang.org"
11361129
source: hosted
1137-
version: "6.0.18"
1130+
version: "6.0.19"
11381131
url_launcher_ios:
11391132
dependency: transitive
11401133
description:
@@ -1218,7 +1211,7 @@ packages:
12181211
name: win32
12191212
url: "https://pub.dartlang.org"
12201213
source: hosted
1221-
version: "2.7.0"
1214+
version: "3.0.0"
12221215
window_manager:
12231216
dependency: "direct main"
12241217
description:

app/pubspec.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ dependencies:
2121
sdk: flutter
2222
flutter_localizations:
2323
sdk: flutter
24-
flutter_svg: ^1.1.4
24+
flutter_svg: ^1.1.5
2525
flutter_bloc: ^8.1.1
2626
image: ^3.2.0
2727
intl: ^0.17.0
2828
path_provider: ^2.0.11
2929
shared_preferences: ^2.0.15
3030
url_launcher: ^6.1.5
31-
file_picker: ^5.0.1
31+
file_picker: ^5.1.0
3232
phosphor_flutter: ^1.4.0
3333
replay_bloc: ^0.2.2
3434
share_plus: ^4.0.10+1
@@ -41,11 +41,11 @@ dependencies:
4141
camera: ^0.10.0+1
4242
camera_windows: ^0.2.1+1
4343
window_manager: ^0.2.6
44-
flex_color_scheme: ^5.1.0
44+
flex_color_scheme: ^6.0.0
4545
freezed_annotation: ^2.1.0
4646
json_annotation: ^4.6.0
4747
path: ^1.8.1
48-
printing: ^5.9.2
48+
printing: ^5.9.3
4949
js: ^0.6.4
5050
pdf: ^3.8.2
5151
http: ^0.13.5
@@ -55,7 +55,7 @@ dependencies:
5555
yaru: ^0.3.3
5656
rxdart: ^0.27.5
5757
ffi: ^2.0.1
58-
connectivity_plus: ^2.3.6+1
58+
connectivity_plus: ^2.3.7
5959
dev_dependencies:
6060
flutter_native_splash: ^2.2.7
6161
flutter_launcher_icons: ^0.10.0
@@ -66,8 +66,8 @@ dev_dependencies:
6666
sdk: flutter
6767
analyzer: ^4.6.0
6868
freezed: ^2.1.0+1
69-
build_runner: ^2.2.0
70-
json_serializable: ^6.3.1
69+
build_runner: ^2.2.1
70+
json_serializable: ^6.3.2
7171
espresso: ^0.2.0+4
7272

7373
# For information on the generic Dart part of this file, see the
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* Fix line generation in shape painter
22
* Fix position and size issues when moving elements
33
* Fix gesture issues on area and shape painter and area change problem
4+
* Fix sync mode won't be saved
45
* Reset pointer on app hide, see #280

0 commit comments

Comments
 (0)