refactor: Enable more strict lints
This commit is contained in:
parent
f797bce8d0
commit
28af7bb0c7
65 changed files with 170 additions and 146 deletions
|
|
@ -38,7 +38,7 @@ class DevicesSettingsController extends State<DevicesSettings> {
|
|||
super.initState();
|
||||
}
|
||||
|
||||
void _checkChatBackup() async {
|
||||
Future<void> _checkChatBackup() async {
|
||||
final client = Matrix.of(context).client;
|
||||
final state = await client.getCryptoIdentityState();
|
||||
setState(() {
|
||||
|
|
@ -46,7 +46,7 @@ class DevicesSettingsController extends State<DevicesSettings> {
|
|||
});
|
||||
}
|
||||
|
||||
void removeDevicesAction(List<Device> devices) async {
|
||||
Future<void> removeDevicesAction(List<Device> devices) async {
|
||||
final client = Matrix.of(context).client;
|
||||
|
||||
final wellKnown = await client.getWellknown();
|
||||
|
|
@ -84,7 +84,7 @@ class DevicesSettingsController extends State<DevicesSettings> {
|
|||
reload();
|
||||
}
|
||||
|
||||
void renameDeviceAction(Device device) async {
|
||||
Future<void> renameDeviceAction(Device device) async {
|
||||
final displayName = await showTextInputDialog(
|
||||
context: context,
|
||||
title: L10n.of(context).changeDeviceName,
|
||||
|
|
@ -104,7 +104,7 @@ class DevicesSettingsController extends State<DevicesSettings> {
|
|||
}
|
||||
}
|
||||
|
||||
void verifyDeviceAction(Device device) async {
|
||||
Future<void> verifyDeviceAction(Device device) async {
|
||||
final consent = await showOkCancelAlertDialog(
|
||||
context: context,
|
||||
title: L10n.of(context).verifyOtherDevice,
|
||||
|
|
@ -129,7 +129,7 @@ class DevicesSettingsController extends State<DevicesSettings> {
|
|||
await KeyVerificationDialog(request: req).show(context);
|
||||
}
|
||||
|
||||
void blockDeviceAction(Device device) async {
|
||||
Future<void> blockDeviceAction(Device device) async {
|
||||
final key = Matrix.of(context)
|
||||
.client
|
||||
.userDeviceKeys[Matrix.of(context).client.userID!]!
|
||||
|
|
@ -141,7 +141,7 @@ class DevicesSettingsController extends State<DevicesSettings> {
|
|||
setState(() {});
|
||||
}
|
||||
|
||||
void unblockDeviceAction(Device device) async {
|
||||
Future<void> unblockDeviceAction(Device device) async {
|
||||
final key = Matrix.of(context)
|
||||
.client
|
||||
.userDeviceKeys[Matrix.of(context).client.userID!]!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue