Skip to content

Commit 9641f2c

Browse files
committed
chore: format files with newer Dart formatter, upgrade deps
1 parent 74f75b1 commit 9641f2c

File tree

7 files changed

+52
-55
lines changed

7 files changed

+52
-55
lines changed

example/pubspec.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -373,26 +373,26 @@ packages:
373373
dependency: transitive
374374
description:
375375
name: leak_tracker
376-
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
376+
sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
377377
url: "https://pub.dev"
378378
source: hosted
379-
version: "10.0.9"
379+
version: "11.0.2"
380380
leak_tracker_flutter_testing:
381381
dependency: transitive
382382
description:
383383
name: leak_tracker_flutter_testing
384-
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
384+
sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
385385
url: "https://pub.dev"
386386
source: hosted
387-
version: "3.0.9"
387+
version: "3.0.10"
388388
leak_tracker_testing:
389389
dependency: transitive
390390
description:
391391
name: leak_tracker_testing
392-
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
392+
sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
393393
url: "https://pub.dev"
394394
source: hosted
395-
version: "3.0.1"
395+
version: "3.0.2"
396396
lints:
397397
dependency: transitive
398398
description:
@@ -610,10 +610,10 @@ packages:
610610
dependency: transitive
611611
description:
612612
name: test_api
613-
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
613+
sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00"
614614
url: "https://pub.dev"
615615
source: hosted
616-
version: "0.7.4"
616+
version: "0.7.6"
617617
typed_data:
618618
dependency: transitive
619619
description:
@@ -690,10 +690,10 @@ packages:
690690
dependency: transitive
691691
description:
692692
name: vector_math
693-
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
693+
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
694694
url: "https://pub.dev"
695695
source: hosted
696-
version: "2.1.4"
696+
version: "2.2.0"
697697
video_player:
698698
dependency: transitive
699699
description:

lib/src/common/structs/horizontal_spacing.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class HorizontalSpacing {
2525
@override
2626
bool operator ==(Object other) =>
2727
identical(this, other) ||
28-
other is HorizontalSpacing &&
29-
left == other.left &&
30-
right == other.right;
28+
other is HorizontalSpacing && left == other.left && right == other.right;
3129

3230
@override
3331
int get hashCode => Object.hash(left, right);

lib/src/common/structs/vertical_spacing.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class VerticalSpacing {
2525
@override
2626
bool operator ==(Object other) =>
2727
identical(this, other) ||
28-
other is VerticalSpacing &&
29-
top == other.top &&
30-
bottom == other.bottom;
28+
other is VerticalSpacing && top == other.top && bottom == other.bottom;
3129

3230
@override
3331
int get hashCode => Object.hash(top, bottom);

lib/src/editor/widgets/default_styles.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class DefaultListBlockStyle extends DefaultTextBlockStyle {
207207
checkboxUIBuilder ?? this.checkboxUIBuilder,
208208
indentWidthBuilder: indentWidthBuilder ?? this.indentWidthBuilder,
209209
numberPointWidthBuilder:
210-
numberPointWidthBuilder ?? this.numberPointWidthBuilder,
210+
numberPointWidthBuilder ?? this.numberPointWidthBuilder,
211211
);
212212
}
213213
}

lib/src/editor/widgets/text/magnifier.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Widget defaultQuillMagnifierBuilder(Offset dragPosition) =>
66
QuillMagnifier(dragPosition: dragPosition);
77

88
class QuillMagnifier extends StatelessWidget {
9-
const QuillMagnifier({required this.dragPosition, super.key});
9+
const QuillMagnifier({required this.dragPosition, super.key});
1010

1111
final Offset dragPosition;
1212

@@ -18,12 +18,13 @@ class QuillMagnifier extends StatelessWidget {
1818
left: position.dx,
1919
child: Container(
2020
decoration: BoxDecoration(
21-
borderRadius: BorderRadius.circular(20),
21+
borderRadius: BorderRadius.circular(20),
2222
),
2323
child: RawMagnifier(
2424
clipBehavior: Clip.hardEdge,
2525
decoration: MagnifierDecoration(
26-
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
26+
shape:
27+
RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
2728
shadows: const [
2829
BoxShadow(
2930
color: Colors.black26,

lib/src/editor/widgets/text/text_block.dart

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -176,40 +176,40 @@ class EditableTextBlock extends StatelessWidget {
176176
for (final line in Iterable.castFrom<dynamic, Line>(block.children)) {
177177
index++;
178178
final editableTextLine = EditableTextLine(
179-
line,
180-
_buildLeading(
181-
context: context,
182-
line: line,
183-
index: index,
184-
indentLevelCounts: indentLevelCounts,
185-
count: count,
186-
),
187-
TextLine(
188-
line: line,
189-
textDirection: textDirection,
190-
embedBuilder: embedBuilder,
191-
textSpanBuilder: textSpanBuilder,
192-
customStyleBuilder: customStyleBuilder,
193-
styles: styles!,
194-
readOnly: readOnly,
195-
controller: controller,
196-
linkActionPicker: linkActionPicker,
197-
onLaunchUrl: onLaunchUrl,
198-
customLinkPrefixes: customLinkPrefixes,
199-
customRecognizerBuilder: customRecognizerBuilder,
200-
composingRange: composingRange,
201-
),
202-
indentWidthBuilder(block, context, count, numberPointWidthBuilder),
203-
_getSpacingForLine(line, index, count, defaultStyles),
204-
textDirection,
205-
textSelection,
206-
color,
207-
enableInteractiveSelection,
208-
hasFocus,
209-
MediaQuery.devicePixelRatioOf(context),
210-
cursorCont,
211-
styles!.inlineCode!,
212-
null);
179+
line,
180+
_buildLeading(
181+
context: context,
182+
line: line,
183+
index: index,
184+
indentLevelCounts: indentLevelCounts,
185+
count: count,
186+
),
187+
TextLine(
188+
line: line,
189+
textDirection: textDirection,
190+
embedBuilder: embedBuilder,
191+
textSpanBuilder: textSpanBuilder,
192+
customStyleBuilder: customStyleBuilder,
193+
styles: styles!,
194+
readOnly: readOnly,
195+
controller: controller,
196+
linkActionPicker: linkActionPicker,
197+
onLaunchUrl: onLaunchUrl,
198+
customLinkPrefixes: customLinkPrefixes,
199+
customRecognizerBuilder: customRecognizerBuilder,
200+
composingRange: composingRange,
201+
),
202+
indentWidthBuilder(block, context, count, numberPointWidthBuilder),
203+
_getSpacingForLine(line, index, count, defaultStyles),
204+
textDirection,
205+
textSelection,
206+
color,
207+
enableInteractiveSelection,
208+
hasFocus,
209+
MediaQuery.devicePixelRatioOf(context),
210+
cursorCont,
211+
styles!.inlineCode!,
212+
null);
213213
final nodeTextDirection = getDirectionOfNode(line, textDirection);
214214
children.add(
215215
Directionality(

lib/src/l10n/generated/quill_localizations_pt.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ class FlutterQuillLocalizationsPtBr extends FlutterQuillLocalizationsPt {
546546
String get lineheight => 'Altura da linha';
547547

548548
@override
549-
String get findText => 'Achar texto';
549+
String get findText => 'Encontrar texto';
550550

551551
@override
552552
String get moveToPreviousOccurrence => 'Voltar para a ocorrência anterior';

0 commit comments

Comments
 (0)