refactor: Enable more strict lints
This commit is contained in:
parent
f797bce8d0
commit
28af7bb0c7
65 changed files with 170 additions and 146 deletions
|
|
@ -35,7 +35,7 @@ class SettingsController extends State<Settings> {
|
|||
profileFuture = null;
|
||||
});
|
||||
|
||||
void setDisplaynameAction() async {
|
||||
Future<void> setDisplaynameAction() async {
|
||||
final profile = await profileFuture;
|
||||
final input = await showTextInputDialog(
|
||||
useRootNavigator: false,
|
||||
|
|
@ -61,7 +61,7 @@ class SettingsController extends State<Settings> {
|
|||
}
|
||||
}
|
||||
|
||||
void logoutAction() async {
|
||||
Future<void> logoutAction() async {
|
||||
if (await showOkCancelAlertDialog(
|
||||
useRootNavigator: false,
|
||||
context: context,
|
||||
|
|
@ -81,7 +81,7 @@ class SettingsController extends State<Settings> {
|
|||
);
|
||||
}
|
||||
|
||||
void setAvatarAction() async {
|
||||
Future<void> setAvatarAction() async {
|
||||
final profile = await profileFuture;
|
||||
final actions = [
|
||||
if (PlatformInfos.isMobile)
|
||||
|
|
@ -159,7 +159,7 @@ class SettingsController extends State<Settings> {
|
|||
super.initState();
|
||||
}
|
||||
|
||||
void checkBootstrap() async {
|
||||
Future<void> checkBootstrap() async {
|
||||
final client = Matrix.of(context).client;
|
||||
if (!client.encryptionEnabled) return;
|
||||
await client.accountDataLoading;
|
||||
|
|
@ -176,7 +176,7 @@ class SettingsController extends State<Settings> {
|
|||
|
||||
bool? cryptoIdentityConnected;
|
||||
|
||||
void firstRunBootstrapAction([_]) async {
|
||||
Future<void> firstRunBootstrapAction([_]) async {
|
||||
if (cryptoIdentityConnected == true) {
|
||||
showOkAlertDialog(
|
||||
context: context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue