Skip to content

Commit 14421b1

Browse files
authored
Update deps where possible (#441)
* Update deps where possible * update ci flutter version
1 parent 490a30c commit 14421b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+111
-108
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
FLUTTER_VERSION: 3.10.x
13+
FLUTTER_VERSION: 3.16.x
1414

1515
jobs:
1616
analyze:

lib/services/display/display_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class DisplayService {
8989
displayConfig.identity(i).connector,
9090
), // maybe monitorId ?
9191
DBusString(confMonitor.monitorModeId), // option selected
92-
DBusDict.stringVariant({})
93-
])
92+
DBusDict.stringVariant({}),
93+
]),
9494
]),
9595
]),
9696
);

lib/services/settings_service.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ class Settings {
7474
}
7575
_values[key] = value;
7676
switch (T) {
77-
case bool:
77+
case const (bool):
7878
return _settings.set(key, DBusBoolean(value as bool));
79-
case int:
79+
case const (int):
8080
return _settings.set(key, DBusInt32(value as int));
81-
case double:
81+
case const (double):
8282
return _settings.set(key, DBusDouble(value as double));
83-
case String:
83+
case const (String):
8484
return _settings.set(key, DBusString(value as String));
8585
default:
8686
break;

lib/view/common/section_description.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SectionDescription extends StatelessWidget {
2323
text,
2424
style: Theme.of(context).textTheme.bodySmall,
2525
),
26-
)
26+
),
2727
],
2828
),
2929
),

lib/view/common/title_bar_tab.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class TitleBarTab extends StatelessWidget {
3030
textAlign: TextAlign.center,
3131
overflow: TextOverflow.ellipsis,
3232
),
33-
)
33+
),
3434
],
3535
),
3636
);

lib/view/pages/accessibility/seeing_section.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,14 @@ class _MagnifierPositionOptions extends StatelessWidget {
281281
initialValue: model.screenPosition,
282282
itemBuilder: (_) {
283283
return [
284-
for (var item in ScreenPosition.values)
284+
for (final item in ScreenPosition.values)
285285
PopupMenuItem(
286286
value: item,
287287
onTap: !model.screenPartEnabled
288288
? null
289289
: () => model.screenPosition = item,
290290
child: Text(item.localize(context.l10n)),
291-
)
291+
),
292292
];
293293
},
294294
child: Text(

lib/view/pages/accounts/accounts_page.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ class AccountsPage extends StatelessWidget {
6363
init: () async {
6464
await Future.delayed(const Duration(seconds: 1));
6565
},
66-
)
66+
),
6767
],
6868
),
6969
),
70-
)
70+
),
7171
],
7272
);
7373
}
@@ -158,7 +158,7 @@ class _AddUserDialogState extends State<_AddUserDialog> {
158158
controller: _passwordHintController,
159159
obscureText: true,
160160
decoration: const InputDecoration(labelText: 'Password hint'),
161-
)
161+
),
162162
],
163163
),
164164
actions: [
@@ -175,7 +175,7 @@ class _AddUserDialogState extends State<_AddUserDialog> {
175175
model.init().then((value) => Navigator.pop(context));
176176
}),
177177
child: Text(context.l10n.confirm),
178-
)
178+
),
179179
],
180180
);
181181
}
@@ -309,7 +309,7 @@ class _EditUserDialogState extends State<_EditUserDialog> {
309309
TextField(
310310
controller: userNameController,
311311
onSubmitted: (value) => model.userName = value,
312-
)
312+
),
313313
],
314314
);
315315
}

lib/view/pages/appearance/dock_section.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class DockSection extends StatelessWidget {
154154
),
155155
),
156156
],
157-
)
157+
),
158158
],
159159
),
160160
SettingsSection(
@@ -184,7 +184,7 @@ class DockSection extends StatelessWidget {
184184
),
185185
height: assetHeight,
186186
),
187-
)
187+
),
188188
],
189189
),
190190
YaruSwitchRow(

lib/view/pages/appearance/theme_section.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class _ThemeSectionState extends State<ThemeSection> {
6363
spacing: 5,
6464
runSpacing: 5,
6565
children: [
66-
for (var globalTheme in globalThemeList)
66+
for (final globalTheme in globalThemeList)
6767
YaruColorDisk(
6868
onPressed: () {
6969
theme.apply(Theme.of(context).brightness, globalTheme);
@@ -72,7 +72,7 @@ class _ThemeSectionState extends State<ThemeSection> {
7272
selected: YaruTheme.of(context).variant == globalTheme,
7373
),
7474
],
75-
)
75+
),
7676
],
7777
);
7878
}

lib/view/pages/apps/apps_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class AppsPage extends StatelessWidget {
3232
icon: const Icon(YaruIcons.application_bag),
3333
),
3434
),
35-
)
35+
),
3636
],
3737
);
3838
}

0 commit comments

Comments
 (0)