Skip to content

Commit 39f83b9

Browse files
committed
chore: Upgrade dependencies
1 parent e8dae5d commit 39f83b9

File tree

12 files changed

+488
-474
lines changed

12 files changed

+488
-474
lines changed

backend/uv.lock

Lines changed: 390 additions & 378 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flutter

Submodule flutter updated 3627 files

kitchenowl/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ migrate_working_dir/
3232
.pub-cache/
3333
.pub/
3434
/build/
35+
/lib/gen
3536

3637
# Symbolication related
3738
app.*.symbols

kitchenowl/l10n.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
arb-dir: lib/l10n
22
template-arb-file: app_en.arb
3-
output-localization-file: app_localizations.dart
3+
output-localization-file: app_localizations.dart
4+
output-dir: lib/gen/l10n

kitchenowl/lib/app.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import 'package:flutter/foundation.dart';
77
import 'package:flutter/material.dart';
88
import 'package:flutter/services.dart';
99
import 'package:flutter_bloc/flutter_bloc.dart';
10-
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
1110
import 'package:flutter_localized_locales/flutter_localized_locales.dart';
1211
import 'package:kitchenowl/config.dart';
1312
import 'package:kitchenowl/cubits/auth_cubit.dart';

kitchenowl/lib/kitchenowl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export 'package:flutter_gen/gen_l10n/app_localizations.dart';
1+
export 'package:kitchenowl/gen/l10n/app_localizations.dart';
22
export 'widgets/_export.dart';
33
export 'models/nullable.dart';
44
export 'styles/dynamic.dart';

kitchenowl/lib/pages/recipe_cooking_page.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class _RecipeCookingPageState extends State<RecipeCookingPage> {
163163
},
164164
textScaler: TextScaler.linear(textScaleFactor),
165165
extensionSet: extensionSet,
166-
imageBuilder: (uri, title, alt) => Image(
166+
imageBuilder: (config) => Image(
167167
fit: BoxFit.cover,
168168
frameBuilder: (context, child, frame,
169169
wasSynchronouslyLoaded) =>
@@ -176,9 +176,10 @@ class _RecipeCookingPageState extends State<RecipeCookingPage> {
176176
),
177177
image: getImageProvider(
178178
context,
179-
int.tryParse(uri.toString()) == 0
180-
? widget.recipe.image ?? uri.toString()
181-
: uri.toString(),
179+
int.tryParse(config.uri.toString()) == 0
180+
? widget.recipe.image ??
181+
config.uri.toString()
182+
: config.uri.toString(),
182183
),
183184
loadingBuilder: (context, child, progress) =>
184185
progress == null

kitchenowl/lib/styles/themes.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ abstract class AppThemes {
6060
backgroundColor: colorScheme.surface,
6161
height: 70,
6262
),
63-
cardTheme: CardTheme(
63+
cardTheme: CardThemeData(
6464
clipBehavior: Clip.antiAlias,
6565
color: colorScheme.surface,
6666
surfaceTintColor: colorScheme.surfaceTint,
@@ -89,7 +89,7 @@ abstract class AppThemes {
8989
colorScheme: colorScheme,
9090
useMaterial3: true,
9191
).copyWith(
92-
cardTheme: CardTheme(
92+
cardTheme: CardThemeData(
9393
clipBehavior: Clip.antiAlias,
9494
elevation: 0,
9595
color: colorScheme.surfaceBright,

kitchenowl/lib/widgets/kitchenowl_markdown_builder.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class KitchenOwlMarkdownBuilder extends StatefulWidget {
8282
final md.ExtensionSet? extensionSet;
8383

8484
/// Call when build an image widget.
85-
final MarkdownImageBuilder? imageBuilder;
85+
final MarkdownSizedImageBuilder? imageBuilder;
8686

8787
/// Call when build a checkbox widget.
8888
final MarkdownCheckboxBuilder? checkboxBuilder;
@@ -186,13 +186,13 @@ class _KitchenOwlMarkdownBuilderState extends State<KitchenOwlMarkdownBuilder>
186186
textScaler: widget.textScaler,
187187
),
188188
imageDirectory: widget.imageDirectory,
189-
imageBuilder: widget.imageBuilder ??
190-
(uri, title, alt) => Padding(
189+
sizedImageBuilder: widget.imageBuilder ??
190+
(config) => Padding(
191191
padding: const EdgeInsets.symmetric(vertical: 8),
192192
child: ClipRRect(
193193
borderRadius: BorderRadius.circular(16),
194194
child: CachedNetworkImage(
195-
imageUrl: uri.toString(),
195+
imageUrl: config.uri.toString(),
196196
placeholder: (context, url) =>
197197
const Center(child: CircularProgressIndicator()),
198198
errorWidget: (context, url, error) =>

kitchenowl/lib/widgets/recipe_markdown_body.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class RecipeMarkdownBody extends StatelessWidget {
8989
),
9090
},
9191
extensionSet: extensionSet,
92-
imageBuilder: (uri, title, alt) => Image(
92+
imageBuilder: (config) => Image(
9393
fit: BoxFit.cover,
9494
frameBuilder: (context, child, frame, wasSynchronouslyLoaded) =>
9595
Padding(
@@ -101,9 +101,9 @@ class RecipeMarkdownBody extends StatelessWidget {
101101
),
102102
image: getImageProvider(
103103
context,
104-
int.tryParse(uri.toString()) == 0
105-
? recipe.image ?? uri.toString()
106-
: uri.toString(),
104+
int.tryParse(config.uri.toString()) == 0
105+
? recipe.image ?? config.uri.toString()
106+
: config.uri.toString(),
107107
),
108108
loadingBuilder: (context, child, progress) => progress == null
109109
? child

0 commit comments

Comments
 (0)