mirror of
https://github.com/localsend/localsend.git
synced 2026-01-15 01:48:03 -05:00
chore: add ignores
This commit is contained in:
@@ -146,6 +146,7 @@ class ReceiveHistoryPage extends StatelessWidget {
|
||||
await _openFile(context, entry, ref.notifier(receiveHistoryProvider));
|
||||
break;
|
||||
case _EntryOption.info:
|
||||
// ignore: use_build_context_synchronously
|
||||
await showDialog(
|
||||
context: context,
|
||||
builder: (_) => FileInfoDialog(entry: entry),
|
||||
|
||||
@@ -318,6 +318,7 @@ class _SettingsTabState extends State<SettingsTab> with Riverpie {
|
||||
try {
|
||||
await ref.notifier(serverProvider).startServerFromSettings();
|
||||
} catch (e) {
|
||||
// ignore: use_build_context_synchronously
|
||||
context.showSnackBar(e.toString());
|
||||
}
|
||||
},
|
||||
@@ -345,6 +346,7 @@ class _SettingsTabState extends State<SettingsTab> with Riverpie {
|
||||
await ref.notifier(settingsProvider).setPort(newServerState.port);
|
||||
}
|
||||
} catch (e) {
|
||||
// ignore: use_build_context_synchronously
|
||||
context.showSnackBar(e.toString());
|
||||
}
|
||||
},
|
||||
|
||||
@@ -144,7 +144,9 @@ enum FilePickerOption {
|
||||
}
|
||||
break;
|
||||
case FilePickerOption.media:
|
||||
// ignore: use_build_context_synchronously
|
||||
final oldBrightness = Theme.of(context).brightness;
|
||||
// ignore: use_build_context_synchronously
|
||||
final List<AssetEntity>? result = await AssetPicker.pickAssets(
|
||||
context,
|
||||
pickerConfig: const AssetPickerConfig(maxAssets: 999, textDelegate: TranslatedAssetPickerTextDelegate()),
|
||||
@@ -166,6 +168,7 @@ enum FilePickerOption {
|
||||
}
|
||||
break;
|
||||
case FilePickerOption.text:
|
||||
// ignore: use_build_context_synchronously
|
||||
final result = await showDialog<String>(context: context, builder: (_) => const MessageInputDialog());
|
||||
if (result != null) {
|
||||
ref.notifier(selectedSendingFilesProvider).addMessage(result);
|
||||
@@ -173,6 +176,7 @@ enum FilePickerOption {
|
||||
break;
|
||||
case FilePickerOption.app:
|
||||
// Currently, only Android APK
|
||||
// ignore: use_build_context_synchronously
|
||||
await context.push(() => const ApkPickerPage());
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user