Apply repo formatter across the tree
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
CI / Format · Analyze · Test (pull_request) Has been cancelled

Run `make format` so the whole repo is consistent under the project formatter.
Whitespace only; no logic changes. Touches a few widgets and tests that were
unformatted on main (dart-format version drift), so `make check` is fully green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Brenno de Winter 2026-06-11 22:17:07 +02:00
parent 97b825f1b9
commit b270e71755
9 changed files with 45 additions and 44 deletions

View file

@ -62,9 +62,7 @@ class _ConsentGate extends ConsumerWidget {
final consent = ref.watch(consentProvider); final consent = ref.watch(consentProvider);
if (consent.isLoading) { if (consent.isLoading) {
return const Scaffold( return const Scaffold(body: Center(child: CircularProgressIndicator()));
body: Center(child: CircularProgressIndicator()),
);
} }
if (!consent.hasAccepted) { if (!consent.hasAccepted) {
@ -72,9 +70,7 @@ class _ConsentGate extends ConsumerWidget {
// supplies the theme and the AppLocalizations delegate, so context.l10n // supplies the theme and the AppLocalizations delegate, so context.l10n
// resolves here. A nested MaterialApp would start a fresh Localizations // resolves here. A nested MaterialApp would start a fresh Localizations
// scope without our delegate and the consent text would render blank. // scope without our delegate and the consent text would render blank.
return const Scaffold( return const Scaffold(body: Center(child: ConsentDialog()));
body: Center(child: ConsentDialog()),
);
} }
return const AppShell(); return const AppShell();

View file

@ -41,9 +41,7 @@ class _ConsentDialogState extends ConsumerState<ConsentDialog> {
padding: const EdgeInsets.all(12), padding: const EdgeInsets.all(12),
decoration: BoxDecoration( decoration: BoxDecoration(
color: theme.colorScheme.surface, color: theme.colorScheme.surface,
border: Border.all( border: Border.all(color: theme.colorScheme.outlineVariant),
color: theme.colorScheme.outlineVariant,
),
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
), ),
child: Column( child: Column(
@ -115,8 +113,9 @@ class _ConsentDialogState extends ConsumerState<ConsentDialog> {
Container( Container(
padding: const EdgeInsets.all(12), padding: const EdgeInsets.all(12),
decoration: BoxDecoration( decoration: BoxDecoration(
color: theme.colorScheme.primaryContainer color: theme.colorScheme.primaryContainer.withValues(
.withValues(alpha: 0.2), alpha: 0.2,
),
border: Border.all( border: Border.all(
color: theme.colorScheme.primary.withValues(alpha: 0.3), color: theme.colorScheme.primary.withValues(alpha: 0.3),
), ),

View file

@ -1648,7 +1648,10 @@ class _SettingsDialogState extends ConsumerState<SettingsDialog> {
children: [ children: [
Text( Text(
l10n.d('U hebt al toegestemd in het gebruik van OciDeck.'), l10n.d('U hebt al toegestemd in het gebruik van OciDeck.'),
style: const TextStyle(fontSize: 12, fontWeight: FontWeight.w500), style: const TextStyle(
fontSize: 12,
fontWeight: FontWeight.w500,
),
), ),
const SizedBox(height: 8), const SizedBox(height: 8),
Text( Text(

View file

@ -270,9 +270,7 @@ class ImagePickerBar extends ConsumerWidget {
} }
if (slide.imagePath2.isNotEmpty && if (slide.imagePath2.isNotEmpty &&
resolve(slide.imagePath2) == target) { resolve(slide.imagePath2) == target) {
updated = updated.copyWith( updated = updated.copyWith(imagePath2: replacement(slide.imagePath2));
imagePath2: replacement(slide.imagePath2),
);
} }
if (!identical(updated, slide)) notifier.updateSlide(i, updated); if (!identical(updated, slide)) notifier.updateSlide(i, updated);
} }

View file

@ -57,7 +57,8 @@ void main() {
home: Builder( home: Builder(
builder: (context) => Center( builder: (context) => Center(
child: ElevatedButton( child: ElevatedButton(
onPressed: () async => picked = await AddSlideDialog.show(context), onPressed: () async =>
picked = await AddSlideDialog.show(context),
child: const Text('open'), child: const Text('open'),
), ),
), ),

View file

@ -108,7 +108,9 @@ void main() {
const spec = ChartSpec( const spec = ChartSpec(
type: ChartType.line, type: ChartType.line,
x: ['Q1'], x: ['Q1'],
series: [ChartSeries(name: 'A', data: [10])], series: [
ChartSeries(name: 'A', data: [10]),
],
minBound: 5, minBound: 5,
maxBound: 20, maxBound: 20,
); );
@ -121,7 +123,9 @@ void main() {
const spec = ChartSpec( const spec = ChartSpec(
type: ChartType.pie, type: ChartType.pie,
x: ['Q1'], x: ['Q1'],
series: [ChartSeries(name: 'A', data: [10])], series: [
ChartSeries(name: 'A', data: [10]),
],
minBound: 5, minBound: 5,
maxBound: 20, maxBound: 20,
); );
@ -149,7 +153,9 @@ void main() {
const spec = ChartSpec( const spec = ChartSpec(
type: ChartType.radar, type: ChartType.radar,
x: ['A', 'B', 'C'], x: ['A', 'B', 'C'],
series: [ChartSeries(name: 'A', data: [1, 2, 3])], series: [
ChartSeries(name: 'A', data: [1, 2, 3]),
],
minBound: 1, minBound: 1,
maxBound: 5, maxBound: 5,
); );

View file

@ -45,9 +45,9 @@ void main() {
expect(tester.takeException(), isNull); expect(tester.takeException(), isNull);
}); });
testWidgets('syntax highlighting on uses HighlightView for a known language', ( testWidgets(
tester, 'syntax highlighting on uses HighlightView for a known language',
) async { (tester) async {
final slide = Slide.create( final slide = Slide.create(
SlideType.code, SlideType.code,
).copyWith(codeLanguage: 'dart', customMarkdown: 'void main() {}'); ).copyWith(codeLanguage: 'dart', customMarkdown: 'void main() {}');
@ -57,7 +57,8 @@ void main() {
await tester.pump(); await tester.pump();
expect(find.byType(HighlightView), findsOneWidget); expect(find.byType(HighlightView), findsOneWidget);
}); },
);
testWidgets('syntax highlighting off renders monochrome (CRT) text', ( testWidgets('syntax highlighting off renders monochrome (CRT) text', (
tester, tester,

View file

@ -68,10 +68,10 @@ void main() {
final a = write('a.png', [1]); final a = write('a.png', [1]);
final b = write('b.png', [1]); final b = write('b.png', [1]);
final keeper = service.chooseKeeper( final keeper = service.chooseKeeper([
[a, b], a,
usageCountOf: (path) => path == b ? 2 : 0, b,
); ], usageCountOf: (path) => path == b ? 2 : 0);
expect(keeper, b); expect(keeper, b);
}); });
@ -79,9 +79,9 @@ void main() {
test('falls back to the oldest file when usages are equal', () { test('falls back to the oldest file when usages are equal', () {
final newer = write('newer.png', [1]); final newer = write('newer.png', [1]);
final older = write('older.png', [1]); final older = write('older.png', [1]);
File(older).setLastModifiedSync( File(
DateTime.now().subtract(const Duration(days: 7)), older,
); ).setLastModifiedSync(DateTime.now().subtract(const Duration(days: 7)));
expect(service.chooseKeeper([newer, older]), older); expect(service.chooseKeeper([newer, older]), older);
}); });

View file

@ -61,13 +61,10 @@ void main() {
}); });
test('parses a markdown table and drops the separator row', () { test('parses a markdown table and drops the separator row', () {
expect( expect(parseClipboardTable('| Naam | Score |\n|---|---:|\n| Jan | 8 |'), [
parseClipboardTable('| Naam | Score |\n|---|---:|\n| Jan | 8 |'),
[
['Naam', 'Score'], ['Naam', 'Score'],
['Jan', '8'], ['Jan', '8'],
], ]);
);
}); });
test('plain text is not a table', () { test('plain text is not a table', () {