Skip to content

Commit 2ba2c6f

Browse files
committed
Update
1 parent fdc27ab commit 2ba2c6f

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
uses: subosito/flutter-action@main
6868
with:
6969
channel: stable
70-
version: '3.38.9'
70+
version: ^3.44.0
7171
cache: true
7272

7373
- name: Setup Java

lib/components/category_chip.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class _CategoryEditorDialogState extends State<CategoryEditorDialog> {
214214
if (_formKey.currentState?.validate() ?? false) {
215215
Navigator.pop(
216216
context,
217-
_CategoryResult(
217+
CategoryResult(
218218
name: _nameController.text.trim(),
219219
color: _selectedColor,
220220
),
@@ -228,21 +228,21 @@ class _CategoryEditorDialogState extends State<CategoryEditorDialog> {
228228
}
229229
}
230230

231-
class _CategoryResult {
231+
class CategoryResult {
232232
final String name;
233233
final Color color;
234234

235-
_CategoryResult({required this.name, required this.color});
235+
CategoryResult({required this.name, required this.color});
236236
}
237237

238-
Future<_CategoryResult?> showCategoryEditorDialog(
238+
Future<CategoryResult?> showCategoryEditorDialog(
239239
BuildContext context, {
240240
String? initialName,
241241
Color? initialColor,
242242
required String title,
243243
required String confirmButtonText,
244244
}) {
245-
return showDialog<_CategoryResult>(
245+
return showDialog<CategoryResult>(
246246
context: context,
247247
builder: (context) => CategoryEditorDialog(
248248
initialName: initialName,

lib/providers/apps_provider.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ Future<PackageInfo?> getInstalledInfo(
604604
);
605605
} catch (e) {
606606
if (printErr) {
607-
print(e); // OK
607+
debugPrint(e.toString());
608608
}
609609
}
610610
}
@@ -632,7 +632,7 @@ class AppsProvider with ChangeNotifier {
632632

633633
Iterable<AppInMemory> getAppValues() => apps.values.map((a) => a.deepCopy());
634634

635-
AppsProvider({isBg = false}) {
635+
AppsProvider({bool isBg = false}) {
636636
// Subscribe to changes in the app foreground status
637637
foregroundStream = FGBGEvents.instance.stream.asBroadcastStream();
638638
foregroundSubscription = foregroundStream?.listen((event) async {
@@ -858,6 +858,7 @@ class AppsProvider with ChangeNotifier {
858858
ext,
859859
APKDir.path,
860860
);
861+
// ignore: use_build_context_synchronously
861862
String? userFileName = await promptForFileName(
862863
context,
863864
suggestedName,
@@ -1426,6 +1427,7 @@ class AppsProvider with ChangeNotifier {
14261427
);
14271428

14281429
try {
1430+
// ignore: use_build_context_synchronously
14291431
var wasInstalled = await installApk(
14301432
DownloadedApk(dir.appId, selectedApks[0]),
14311433
firstTimeWithContext,
@@ -3169,9 +3171,9 @@ class _APKOriginWarningDialogState extends State<APKOriginWarningDialog> {
31693171

31703172
/// Background updater function
31713173
///
3172-
/// @param List<MapEntry<String, int>>? toCheck: The appIds to check for updates (with the number of previous attempts made per appid) (defaults to all apps)
3174+
/// @param `List<MapEntry<String, int>>?` toCheck: The appIds to check for updates (with the number of previous attempts made per appid) (defaults to all apps)
31733175
///
3174-
/// @param List<String>? toInstall: The appIds to attempt to update (if empty - which is the default - all pending updates are taken)
3176+
/// @param `List<String>?` toInstall: The appIds to attempt to update (if empty - which is the default - all pending updates are taken)
31753177
///
31763178
/// When toCheck is empty, the function is in "install mode" (else it is in "update mode").
31773179
/// In update mode, all apps in toCheck are checked for updates (in parallel).

0 commit comments

Comments
 (0)