Skip to content

Commit 6193e53

Browse files
renovate[bot]provokateurin
authored andcommitted
chore(deps): update dependency flutter to v3.35.1
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 0685302 commit 6193e53

10 files changed

Lines changed: 118 additions & 114 deletions

File tree

.fvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"flutter": "3.32.8",
2+
"flutter": "3.35.1",
33
"updateVscodeSettings": false
44
}

packages/neon_framework/lib/src/router.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import 'package:flutter/foundation.dart';
88
import 'package:flutter/material.dart';
99
import 'package:flutter_bloc/flutter_bloc.dart';
1010
import 'package:go_router/go_router.dart';
11-
import 'package:meta/meta.dart';
1211
import 'package:neon_framework/models.dart';
1312
import 'package:neon_framework/src/login/login.dart';
1413
import 'package:neon_framework/src/pages/account_settings.dart';

packages/neon_framework/lib/src/settings/widgets/option_settings_tile.dart

Lines changed: 42 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -132,33 +132,36 @@ class _SelectSettingsTileDialogState<T> extends State<SelectSettingsTileDialog<T
132132
}
133133

134134
void submit() => Navigator.pop(context, (value: value));
135+
135136
void cancel() => Navigator.pop(context);
136137

137138
@override
138139
Widget build(BuildContext context) {
139140
final content = SingleChildScrollView(
140-
child: Column(
141-
children: [
142-
...widget.option.values.keys.map(
143-
(k) => RadioListTile(
144-
title: Text(
145-
widget.option.values[k]!(context),
146-
overflow: TextOverflow.ellipsis,
141+
child: RadioGroup<T>(
142+
groupValue: value,
143+
onChanged: (value) {
144+
setState(() {
145+
this.value = value as T;
146+
});
147+
148+
if (widget.immediateSelection) {
149+
submit();
150+
}
151+
},
152+
child: Column(
153+
children: [
154+
...widget.option.values.keys.map(
155+
(k) => RadioListTile(
156+
title: Text(
157+
widget.option.values[k]!(context),
158+
overflow: TextOverflow.ellipsis,
159+
),
160+
value: k,
147161
),
148-
value: k,
149-
groupValue: value,
150-
onChanged: (value) {
151-
setState(() {
152-
this.value = value as T;
153-
});
154-
155-
if (widget.immediateSelection) {
156-
submit();
157-
}
158-
},
159162
),
160-
),
161-
],
163+
],
164+
),
162165
),
163166
);
164167

@@ -204,25 +207,27 @@ class SelectSettingsTileScreen<T> extends StatelessWidget {
204207

205208
final selector = ValueListenableBuilder(
206209
valueListenable: option,
207-
builder: (context, value, child) => CupertinoListSection.insetGrouped(
208-
hasLeading: false,
209-
header: child,
210-
children: [
211-
...option.values.keys.map(
212-
(k) => RadioListTile.adaptive(
213-
controlAffinity: ListTileControlAffinity.trailing,
214-
title: Text(
215-
option.values[k]!(context),
216-
overflow: TextOverflow.ellipsis,
210+
builder: (context, value, child) => RadioGroup<T>(
211+
groupValue: value,
212+
onChanged: (value) {
213+
option.value = value as T;
214+
},
215+
child: CupertinoListSection.insetGrouped(
216+
hasLeading: false,
217+
header: child,
218+
children: [
219+
...option.values.keys.map(
220+
(k) => RadioListTile.adaptive(
221+
controlAffinity: ListTileControlAffinity.trailing,
222+
title: Text(
223+
option.values[k]!(context),
224+
overflow: TextOverflow.ellipsis,
225+
),
226+
value: k,
217227
),
218-
value: k,
219-
groupValue: value,
220-
onChanged: (value) {
221-
option.value = value as T;
222-
},
223228
),
224-
),
225-
],
229+
],
230+
),
226231
),
227232
child: Text(
228233
option.label(context),

packages/neon_framework/lib/src/storage/sqlite_persistence.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import 'dart:convert';
44
import 'package:built_collection/built_collection.dart';
55
import 'package:flutter/foundation.dart';
66
import 'package:logging/logging.dart';
7-
import 'package:meta/meta.dart' show internal;
87
import 'package:neon_framework/platform.dart';
98
import 'package:neon_framework/src/storage/persistence.dart';
109
import 'package:path/path.dart' as p;

packages/neon_framework/lib/src/utils/push_utils.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import 'package:flutter_svg/flutter_svg.dart' show SvgBytesLoader, vg;
1212
import 'package:http/http.dart' as http;
1313
import 'package:image/image.dart' as img;
1414
import 'package:logging/logging.dart';
15-
import 'package:meta/meta.dart';
1615
import 'package:neon_framework/l10n/localizations.dart';
1716
import 'package:neon_framework/src/bloc/result.dart';
1817
import 'package:neon_framework/src/storage/keys.dart';

packages/neon_framework/lib/src/utils/request_manager.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import 'package:dynamite_runtime/http_client.dart';
55
import 'package:flutter/foundation.dart';
66
import 'package:http/http.dart' as http;
77
import 'package:logging/logging.dart';
8-
import 'package:meta/meta.dart';
98
import 'package:neon_framework/models.dart';
109
import 'package:neon_framework/src/bloc/result.dart';
1110
import 'package:neon_framework/storage.dart';

packages/neon_framework/lib/src/widgets/dialog.dart

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -646,22 +646,23 @@ class _NeonAccountDeletionDialogState extends State<NeonAccountDeletionDialog> {
646646
icon: icon,
647647
title: Text(title),
648648
content: SingleChildScrollView(
649-
child: Column(
650-
children: [
651-
RadioListTile(
652-
value: AccountDeletion.local,
653-
groupValue: value,
654-
onChanged: (value) => update(value!),
655-
title: Text(localizations.accountOptionsRemoveLocal),
656-
),
657-
RadioListTile<AccountDeletion>(
658-
value: AccountDeletion.remote,
659-
groupValue: value,
660-
onChanged: capabilities.enabled ? (value) => update(value!) : null,
661-
title: Text(localizations.accountOptionsRemoveRemote),
662-
subtitle: subtitle,
663-
),
664-
],
649+
child: RadioGroup<AccountDeletion>(
650+
groupValue: value,
651+
onChanged: (value) => update(value!),
652+
child: Column(
653+
children: [
654+
RadioListTile(
655+
value: AccountDeletion.local,
656+
title: Text(localizations.accountOptionsRemoveLocal),
657+
),
658+
RadioListTile<AccountDeletion>(
659+
value: AccountDeletion.remote,
660+
enabled: capabilities.enabled,
661+
title: Text(localizations.accountOptionsRemoveRemote),
662+
subtitle: subtitle,
663+
),
664+
],
665+
),
665666
),
666667
),
667668
actions: [

packages/neon_framework/packages/news_app/lib/src/widgets/folder_select.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class NewsFolderSelect extends StatelessWidget {
2323
decoration: InputDecoration(
2424
hintText: NewsLocalizations.of(context).folder,
2525
),
26-
value: value,
26+
initialValue: value,
2727
items: [
2828
DropdownMenuItem(
2929
child: Text(NewsLocalizations.of(context).folderRoot),

packages/neon_framework/packages/talk_app/lib/src/dialogs/create_room.dart

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -69,49 +69,51 @@ class _TalkCreateRoomDialogState extends State<TalkCreateRoomDialog> {
6969

7070
@override
7171
Widget build(BuildContext context) {
72-
final body = Column(
73-
crossAxisAlignment: CrossAxisAlignment.end,
74-
mainAxisSize: MainAxisSize.min,
75-
children: [
76-
for (final type in [
77-
spreed.RoomType.oneToOne,
78-
spreed.RoomType.group,
79-
spreed.RoomType.public,
80-
])
81-
RadioListTile.adaptive(
82-
title: Text(TalkLocalizations.of(context).roomType(type.name)),
83-
secondary: Icon(
84-
// coverage:ignore-start
85-
switch (type) {
86-
// coverage:ignore-end
87-
spreed.RoomType.oneToOne => AdaptiveIcons.person,
88-
spreed.RoomType.group => AdaptiveIcons.group,
89-
spreed.RoomType.public => AdaptiveIcons.link,
90-
_ => throw UnimplementedError('$type is not a valid type'), // coverage:ignore-line
91-
},
92-
),
93-
value: type,
94-
groupValue: selectedType,
95-
onChanged: changeType,
96-
),
97-
const Divider(),
98-
switch (selectedType) {
99-
spreed.RoomType.oneToOne || spreed.RoomType.group => buildAutocomplete(),
100-
spreed.RoomType.public => TextFormField(
101-
controller: controller,
102-
focusNode: focusNode,
103-
validator: (input) => validateNotEmpty(context, input),
104-
decoration: InputDecoration(
105-
hintText: TalkLocalizations.of(context).roomCreateRoomName,
72+
final body = RadioGroup<spreed.RoomType>(
73+
groupValue: selectedType,
74+
onChanged: changeType,
75+
child: Column(
76+
crossAxisAlignment: CrossAxisAlignment.end,
77+
mainAxisSize: MainAxisSize.min,
78+
children: [
79+
for (final type in [
80+
spreed.RoomType.oneToOne,
81+
spreed.RoomType.group,
82+
spreed.RoomType.public,
83+
])
84+
RadioListTile.adaptive(
85+
title: Text(TalkLocalizations.of(context).roomType(type.name)),
86+
secondary: Icon(
87+
// coverage:ignore-start
88+
switch (type) {
89+
// coverage:ignore-end
90+
spreed.RoomType.oneToOne => AdaptiveIcons.person,
91+
spreed.RoomType.group => AdaptiveIcons.group,
92+
spreed.RoomType.public => AdaptiveIcons.link,
93+
_ => throw UnimplementedError('$type is not a valid type'), // coverage:ignore-line
94+
},
10695
),
107-
onFieldSubmitted: (_) {
108-
submit();
109-
},
96+
value: type,
11097
),
111-
null => const SizedBox(),
112-
_ => throw StateError('$selectedType is not a valid type'), // coverage:ignore-line
113-
},
114-
],
98+
const Divider(),
99+
switch (selectedType) {
100+
spreed.RoomType.oneToOne || spreed.RoomType.group => buildAutocomplete(),
101+
spreed.RoomType.public => TextFormField(
102+
controller: controller,
103+
focusNode: focusNode,
104+
validator: (input) => validateNotEmpty(context, input),
105+
decoration: InputDecoration(
106+
hintText: TalkLocalizations.of(context).roomCreateRoomName,
107+
),
108+
onFieldSubmitted: (_) {
109+
submit();
110+
},
111+
),
112+
null => const SizedBox(),
113+
_ => throw StateError('$selectedType is not a valid type'), // coverage:ignore-line
114+
},
115+
],
116+
),
115117
);
116118

117119
return NeonDialog(

pubspec.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -931,26 +931,26 @@ packages:
931931
dependency: transitive
932932
description:
933933
name: leak_tracker
934-
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
934+
sha256: "8dcda04c3fc16c14f48a7bb586d4be1f0d1572731b6d81d51772ef47c02081e0"
935935
url: "https://pub.dev"
936936
source: hosted
937-
version: "10.0.9"
937+
version: "11.0.1"
938938
leak_tracker_flutter_testing:
939939
dependency: transitive
940940
description:
941941
name: leak_tracker_flutter_testing
942-
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
942+
sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
943943
url: "https://pub.dev"
944944
source: hosted
945-
version: "3.0.9"
945+
version: "3.0.10"
946946
leak_tracker_testing:
947947
dependency: transitive
948948
description:
949949
name: leak_tracker_testing
950-
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
950+
sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
951951
url: "https://pub.dev"
952952
source: hosted
953-
version: "3.0.1"
953+
version: "3.0.2"
954954
lint_maker:
955955
dependency: transitive
956956
description:
@@ -1696,26 +1696,26 @@ packages:
16961696
dependency: transitive
16971697
description:
16981698
name: test
1699-
sha256: "301b213cd241ca982e9ba50266bd3f5bd1ea33f1455554c5abb85d1be0e2d87e"
1699+
sha256: "65e29d831719be0591f7b3b1a32a3cda258ec98c58c7b25f7b84241bc31215bb"
17001700
url: "https://pub.dev"
17011701
source: hosted
1702-
version: "1.25.15"
1702+
version: "1.26.2"
17031703
test_api:
17041704
dependency: transitive
17051705
description:
17061706
name: test_api
1707-
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
1707+
sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00"
17081708
url: "https://pub.dev"
17091709
source: hosted
1710-
version: "0.7.4"
1710+
version: "0.7.6"
17111711
test_core:
17121712
dependency: transitive
17131713
description:
17141714
name: test_core
1715-
sha256: "84d17c3486c8dfdbe5e12a50c8ae176d15e2a771b96909a9442b40173649ccaa"
1715+
sha256: "80bf5a02b60af04b09e14f6fe68b921aad119493e26e490deaca5993fef1b05a"
17161716
url: "https://pub.dev"
17171717
source: hosted
1718-
version: "0.6.8"
1718+
version: "0.6.11"
17191719
timezone:
17201720
dependency: transitive
17211721
description:
@@ -1880,10 +1880,10 @@ packages:
18801880
dependency: transitive
18811881
description:
18821882
name: vector_math
1883-
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
1883+
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
18841884
url: "https://pub.dev"
18851885
source: hosted
1886-
version: "2.1.4"
1886+
version: "2.2.0"
18871887
version:
18881888
dependency: transitive
18891889
description:

0 commit comments

Comments
 (0)